From 66b5c3933b0f28d57020b66524bb8b115dee225d Mon Sep 17 00:00:00 2001 From: Andrew Cady Date: Tue, 19 Apr 2016 20:42:14 -0400 Subject: implement menu select option for booting with ramdisk root --- old-school/menu-select | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'old-school/menu-select') diff --git a/old-school/menu-select b/old-school/menu-select index 0cc0c67..5f0848f 100755 --- a/old-school/menu-select +++ b/old-school/menu-select @@ -62,15 +62,17 @@ hwclock_to_system() case "$1" in boot-ram) - modprobe squashfs || true - find_squashfs_root | mountsquashes || error - mkdir /overlay || error - mount -t tmpfs tmpfs /overlay || error - mkdir /overlay/gpg || error - ln -s /overlay/gpg /gpg - - init_gpg || error - bootdone squashfs-root rw-overlay + mkdir /cdrom /btrfs + bootwait samizdat-cdrom + mount -t btrfs -o loop,subvol=ROOT /cdrom/live/filesystem.btrfs /btrfs + modprobe brd rd_size=$((256 * 1024 * 2)) + btrfs device add /dev/ram0 /btrfs + mount -o rw,remount /btrfs + mount -o move /btrfs /root + mkdir /root/cdrom + mount -o move /cdrom /root/cdrom + + bootdone root-mounted ;; boot-overwrite|boot-new|boot-luks) dev="$2" -- cgit v1.2.3