Skip to content

Commit

Permalink
absolute path for subvolumes, live-base constant, and json output
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Jul 4, 2024
1 parent 9157ad7 commit a278356
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ impl InstallationType {
--dry-run=$dry_run
--definitions=$cfgdir
--empty=force
--json=pretty
$blockdev
)
.map_err(|e| color_eyre::eyre::eyre!("systemd-repart failed").wrap_err(e))?;
Expand Down
1 change: 1 addition & 0 deletions src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use color_eyre::Section as _;

// pub const MAX_EFI_SIZE: ByteSize = ByteSize::gb(1);
pub const DEFAULT_SQUASH_LOCATION: &str = "/run/initramfs/live/LiveOS/squashfs.img";
pub const LIVE_BASE: &str = "/dev/mapper/live-base";

Check warning

Code scanning / clippy

constant LIVE_BASE is never used Warning

constant LIVE\_BASE is never used

#[cfg(target_os = "linux")]
/// Check if the current running system is UEFI or not.
Expand Down
2 changes: 1 addition & 1 deletion templates/chromebookinstall/50-root.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type=root
Format=btrfs
# Verity=data
# VerityMatchKey=root
Subvolumes=@ @home
Subvolumes=/@ /@home
MountPoint=/:rw,seclabel,relatime,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/@
MountPoint=/home:rw,seclabel,relatime,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/@home
FactoryReset=yes
Expand Down

0 comments on commit a278356

Please sign in to comment.