summaryrefslogtreecommitdiff
path: root/initramfs-tools/scripts/samizdat
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-19 09:41:28 -0400
committerAndrew Cady <d@jerkface.net>2016-04-19 09:41:28 -0400
commita04c756debe866d251d484a119e78c4bd1715738 (patch)
tree257f9c8488e34fb48a6c2c6aed6a775345bdd347 /initramfs-tools/scripts/samizdat
parent3b5b679166df95ba2ce2e507e008da04d5efd4da (diff)
minimal, dumb mountroot()
Diffstat (limited to 'initramfs-tools/scripts/samizdat')
-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}