diff options
author | Andrew Cady <d@jerkface.net> | 2016-05-03 10:13:42 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-05-03 10:13:42 -0400 |
commit | ec4837a57a137672033d326770b2d978764c1841 (patch) | |
tree | 53871fbbe8edd71fe64bb316bc3523e3bdde67bc /src | |
parent | f200e83db0dea1d120cf91d6c71c2d74b00b9706 (diff) |
fix the rest of the bugs
Diffstat (limited to 'src')
-rw-r--r-- | src/initrd/btrfs-create.sh | 2 | ||||
-rwxr-xr-x | src/initrd/grok-block | 6 | ||||
-rw-r--r-- | src/xorriso-usb.sh | 6 |
3 files changed, 13 insertions, 1 deletions
diff --git a/src/initrd/btrfs-create.sh b/src/initrd/btrfs-create.sh index 6a6a94e..c13d981 100644 --- a/src/initrd/btrfs-create.sh +++ b/src/initrd/btrfs-create.sh | |||
@@ -120,7 +120,7 @@ initialize_root_filesystem() | |||
120 | rmdir /root/home | 120 | rmdir /root/home |
121 | btrfs subvolume create /root/home || return | 121 | btrfs subvolume create /root/home || return |
122 | 122 | ||
123 | copy_execs sbin mdadm dmsetup cryptsetup | 123 | copy_execs sbin mdadm dmsetup cryptsetup fsck.hfsplus |
124 | copy_execs bin btrfs rsync gpg gpg2 gpg-agent | 124 | copy_execs bin btrfs rsync gpg gpg2 gpg-agent |
125 | 125 | ||
126 | # Copy these over unconditionally, because they ought to remain in sync with | 126 | # Copy these over unconditionally, because they ought to remain in sync with |
diff --git a/src/initrd/grok-block b/src/initrd/grok-block index 4978a92..081238a 100755 --- a/src/initrd/grok-block +++ b/src/initrd/grok-block | |||
@@ -184,6 +184,12 @@ then | |||
184 | mkdir -p /cdrom | 184 | mkdir -p /cdrom |
185 | . mdadm-dup.sh | 185 | . mdadm-dup.sh |
186 | dup_mount_cdrom "$DEVNAME" /cdrom && bootdone samizdat-cdrom | 186 | dup_mount_cdrom "$DEVNAME" /cdrom && bootdone samizdat-cdrom |
187 | if [ -e /cdrom/gnupghome ]; then | ||
188 | # TODO: don't use first match | ||
189 | mkdir -p /gpg/gnupghome | ||
190 | cp /cdrom/gnupghome/* /gpg/gnupghome | ||
191 | bootdone samizdat-gpg | ||
192 | fi | ||
187 | fi | 193 | fi |
188 | else | 194 | else |
189 | grok_block & | 195 | grok_block & |
diff --git a/src/xorriso-usb.sh b/src/xorriso-usb.sh index 0d7773d..e912080 100644 --- a/src/xorriso-usb.sh +++ b/src/xorriso-usb.sh | |||
@@ -160,11 +160,16 @@ if [ "$INPUT_DEVICE" ]; then | |||
160 | REMOVE_BTRFS= | 160 | REMOVE_BTRFS= |
161 | ADD_BTRFS= | 161 | ADD_BTRFS= |
162 | fi | 162 | fi |
163 | elif [ "$BOOTLOADER_ONLY" ]; then | ||
164 | REPLACE_INITRD= | ||
165 | REMOVE_BTRFS= | ||
166 | ADD_BTRFS= | ||
163 | else | 167 | else |
164 | REPLACE_INITRD=y | 168 | REPLACE_INITRD=y |
165 | REMOVE_BTRFS=y | 169 | REMOVE_BTRFS=y |
166 | ADD_BTRFS=y | 170 | ADD_BTRFS=y |
167 | fi | 171 | fi |
172 | REPLACE_INITRD= # TODO: fix initrd replacing | ||
168 | 173 | ||
169 | if [ "$QUICK_TEST" ]; then | 174 | if [ "$QUICK_TEST" ]; then |
170 | REMOVE_BTRFS=y | 175 | REMOVE_BTRFS=y |
@@ -200,6 +205,7 @@ xorriso \ | |||
200 | \ | 205 | \ |
201 | \ | 206 | \ |
202 | ${REPLACE_INITRD:+ -rm_r linux -- -add linux="${vmlinuz_dir}" -- } \ | 207 | ${REPLACE_INITRD:+ -rm_r linux -- -add linux="${vmlinuz_dir}" -- } \ |
208 | ${BOOTLOADER_ONLY:+ -add linux="${vmlinuz_dir}" -- } \ | ||
203 | ${REMOVE_BTRFS:+ -rm_r rootfs -- } \ | 209 | ${REMOVE_BTRFS:+ -rm_r rootfs -- } \ |
204 | ${ADD_BTRFS:+ -follow link -add "$@" -- -follow default } \ | 210 | ${ADD_BTRFS:+ -follow link -add "$@" -- -follow default } \ |
205 | \ | 211 | \ |