SHA256
Switching to regex_lite and s optimization level - 2x binary size reduction.
This commit is contained in:
1 parent
000c8b94b5
commit
d2ddceb1a2
4 files changed
+13
-49
No files matched your search
+6
-4
@@ -40,8 +40,10 @@ const BEE_CAT: &str = include_str!("bee_cat.txt");
|
||||
|
||||
//const ROOT_PARTLABEL: &str = "bee-root";
|
||||
const ROOT_PARTLABEL: &str = "bee-root";
|
||||
const TMP_ROOT: &str = "/mnt/bee_root";
|
||||
const TMP_ROOT_SNAPS: &str = "/mnt/bee_root/bzz_snaps";
|
||||
const TMP_REAL_ROOT: &str = "/mnt/real-bee";
|
||||
const TMP_REAL_ROOT_SNAPS: &str = "/mnt/real-bee/bzz-snaps";
|
||||
const TMP_ROOT: &str = "/mnt/real-bee/bee-root";
|
||||
const TMP_ROOT_SNAPS: &str = "/mnt/real-bee/bee-root/bzz-snaps";
|
||||
const SYS_INIT: &str = "/sbin/init";
|
||||
|
||||
// fn bee_root_is_present() -> bool {
|
||||
@@ -76,13 +78,13 @@ enum NyanitState {
|
||||
/// Mounting bee-root and chiking if there any snapshots
|
||||
fn mount_and_check_snaps(bee_root_dev: &str) -> Result<NyanitState, ExecCommandError> {
|
||||
// mount bee-root
|
||||
nyan_system::mount_bee_root(bee_root_dev, TMP_ROOT)?;
|
||||
nyan_system::mount_bee_root(bee_root_dev, TMP_REAL_ROOT)?;
|
||||
|
||||
// let root_list = nyan_system::list_dir(TMP_ROOT)?;
|
||||
// return Err(ExecCommandError::Other(root_list));
|
||||
|
||||
// list snaps if any
|
||||
let mut snaps_list = nyan_system::list_bzzpss_snaps(TMP_ROOT_SNAPS)?;
|
||||
let mut snaps_list = nyan_system::list_bzzpss_snaps(TMP_REAL_ROOT_SNAPS)?;
|
||||
// if any snaps detected whait for user to press F2
|
||||
if snaps_list.len() > 0 {
|
||||
snaps_list.insert(0, TMP_ROOT.to_string());
|
||||
|
||||
Reference in new issue
Block a user