summaryrefslogtreecommitdiff
path: root/old-school/menu-select
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 20:42:14 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 22:59:52 -0400
commit66b5c3933b0f28d57020b66524bb8b115dee225d (patch)
treed57dc164708a36dcee530322ba66d656fc955145 /old-school/menu-select
parent68f3ea11b5c373f4fda17158b0359ba3e7df6247 (diff)
implement menu select option for booting with ramdisk root
Diffstat (limited to 'old-school/menu-select')
-rwxr-xr-xold-school/menu-select20
1 files changed, 11 insertions, 9 deletions
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()
62 62
63case "$1" in 63case "$1" in
64 boot-ram) 64 boot-ram)
65 modprobe squashfs || true 65 mkdir /cdrom /btrfs
66 find_squashfs_root | mountsquashes || error 66 bootwait samizdat-cdrom
67 mkdir /overlay || error 67 mount -t btrfs -o loop,subvol=ROOT /cdrom/live/filesystem.btrfs /btrfs
68 mount -t tmpfs tmpfs /overlay || error 68 modprobe brd rd_size=$((256 * 1024 * 2))
69 mkdir /overlay/gpg || error 69 btrfs device add /dev/ram0 /btrfs
70 ln -s /overlay/gpg /gpg 70 mount -o rw,remount /btrfs
71 71 mount -o move /btrfs /root
72 init_gpg || error 72 mkdir /root/cdrom
73 bootdone squashfs-root rw-overlay 73 mount -o move /cdrom /root/cdrom
74
75 bootdone root-mounted
74 ;; 76 ;;
75 boot-overwrite|boot-new|boot-luks) 77 boot-overwrite|boot-new|boot-luks)
76 dev="$2" 78 dev="$2"