summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--initramfs-tools/scripts/samizdat16
1 files changed, 14 insertions, 2 deletions
diff --git a/initramfs-tools/scripts/samizdat b/initramfs-tools/scripts/samizdat
index e41c65e..51b124a 100644
--- a/initramfs-tools/scripts/samizdat
+++ b/initramfs-tools/scripts/samizdat
@@ -1,2 +1,14 @@
1export PS1='samizdat\$ ' 1mountroot()
2exec sh 2{
3 set -x
4 mkdir /cdrom /btrfs
5 mount -t iso9660 /dev/sr0 /cdrom
6 mount -t btrfs -o loop,subvol=ROOT /cdrom/live/filesystem.btrfs /btrfs
7 modprobe brd rd_size=$((256 * 1024 * 2))
8 btrfs device add /dev/ram0 /btrfs
9 mount -o rw,remount /btrfs
10 mount -o move /btrfs /root
11 mkdir /root/cdrom
12 mount -o move /cdrom /root/cdrom
13 set +x
14}