diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-19 09:41:28 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-19 09:41:28 -0400 |
commit | a04c756debe866d251d484a119e78c4bd1715738 (patch) | |
tree | 257f9c8488e34fb48a6c2c6aed6a775345bdd347 /initramfs-tools/scripts/samizdat | |
parent | 3b5b679166df95ba2ce2e507e008da04d5efd4da (diff) |
minimal, dumb mountroot()
Diffstat (limited to 'initramfs-tools/scripts/samizdat')
-rw-r--r-- | initramfs-tools/scripts/samizdat | 16 |
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 @@ | |||
1 | export PS1='samizdat\$ ' | 1 | mountroot() |
2 | exec 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 | } | ||