diff options
author | Andrew Cady <d@jerkface.net> | 2016-04-28 22:45:20 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-04-28 22:45:20 -0400 |
commit | 568e0f46d544d8c824e43611983fadd485ccdada (patch) | |
tree | cb906cf27322a27ff239f6cef9461a8110b8b92c /old-school | |
parent | cbd849208bb40b073c3a5440bed55df445d1bf32 (diff) |
copy initrd logs into rootfs
Diffstat (limited to 'old-school')
-rw-r--r-- | old-school/lvm-create.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/old-school/lvm-create.sh b/old-school/lvm-create.sh index 0e88995..0238682 100644 --- a/old-school/lvm-create.sh +++ b/old-school/lvm-create.sh | |||
@@ -70,8 +70,8 @@ samizdat_movemounts() | |||
70 | fi | 70 | fi |
71 | mkdir /root/cdrom | 71 | mkdir /root/cdrom |
72 | mount -o move /cdrom /root/cdrom | 72 | mount -o move /cdrom /root/cdrom |
73 | # mkdir /run/initramfs/samizdat | 73 | mkdir -p /run/initramfs/samizdat/log |
74 | # mv /var/log /run/initramfs/samizdat/log | 74 | cp /var/log/* /run/initramfs/samizdat/log |
75 | true | 75 | true |
76 | } | 76 | } |
77 | 77 | ||
@@ -147,8 +147,9 @@ filesystem_incomplete() | |||
147 | 147 | ||
148 | open_samizdat() | 148 | open_samizdat() |
149 | { | 149 | { |
150 | open_samizdat_blockdev "$@" || return | 150 | local imgfile="$1" keyfile="$2" |
151 | local blockdev=/dev/mapper/samizdatcrypt imgfile="$1" fs | 151 | open_samizdat_blockdev "$imgfile" "$keyfile" || return |
152 | local blockdev=/dev/mapper/samizdatcrypt fs | ||
152 | 153 | ||
153 | # For this part, we don't necessarily need the cdrom. | 154 | # For this part, we don't necessarily need the cdrom. |
154 | # Unfortunately the init_gpg code is still getting the GPG key there. | 155 | # Unfortunately the init_gpg code is still getting the GPG key there. |