summaryrefslogtreecommitdiff
path: root/src/initrd/btrfs-create.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/initrd/btrfs-create.sh')
-rw-r--r--src/initrd/btrfs-create.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh
index 8688560..edd2d1c 100644
--- a/src/initrd/btrfs-create.sh
+++ b/src/initrd/btrfs-create.sh
@@ -1,5 +1,8 @@
1#!/bin/sh 1#!/bin/sh
2 2
3. loop-layer.sh
4. mdadm-dup.sh
5
3losetup() { /sbin/losetup "$@"; } 6losetup() { /sbin/losetup "$@"; }
4 7
5luks_secret() 8luks_secret()
@@ -24,10 +27,15 @@ ceil4()
24 printf '%d\n' "$x" 27 printf '%d\n' "$x"
25} 28}
26 29
27. loop-layer.sh
28
29losetup_layers() 30losetup_layers()
30{ 31{
32 if netbooting; then
33 bootwait samizdat-nbd-dev
34 dd if=/dev/zero of=/nbd0.rw bs=1M count=10
35 dm_snapshot /dev/nbd0 /nbd0.rw
36 return
37 fi
38
31 bootwait samizdat-cdrom 39 bootwait samizdat-cdrom
32 local fs fs_rw 40 local fs fs_rw
33 for fs in /cdrom/rootfs/*.btrfs; do 41 for fs in /cdrom/rootfs/*.btrfs; do