summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinitramfs-tools/hooks/samizdat2
-rw-r--r--src/initrd/btrfs-create.sh2
-rwxr-xr-xsrc/initrd/grok-block6
-rw-r--r--src/xorriso-usb.sh6
4 files changed, 14 insertions, 2 deletions
diff --git a/initramfs-tools/hooks/samizdat b/initramfs-tools/hooks/samizdat
index 5ec8688..78ece68 100755
--- a/initramfs-tools/hooks/samizdat
+++ b/initramfs-tools/hooks/samizdat
@@ -10,7 +10,7 @@ PATH=/usr/local/bin:$PATH
10 10
11repo_execs=$(echo "${samizdat_initrd_files_dir}"/*) 11repo_execs=$(echo "${samizdat_initrd_files_dir}"/*)
12 12
13path_execs='mountpoint openvt rsync gpg2 gpg-agent pinentry-curses truncate cryptsetup mkfs.btrfs btrfs fsck.hfsplus wait_for_files samizdat-pinentry dynmenu src/samizdat-password-agent src/samizdat-gpg-agent' 13path_execs='mountpoint openvt rsync gpg2 gpg-agent pinentry-curses truncate cryptsetup mkfs.btrfs btrfs fsck.hfsplus wait_for_files samizdat-pinentry dynmenu samizdat-password-agent samizdat-gpg-agent'
14 14
15graft_paths=" 15graft_paths="
16 /bin/OpenVT=/bin/openvt 16 /bin/OpenVT=/bin/openvt
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
188else 194else
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
163elif [ "$BOOTLOADER_ONLY" ]; then
164 REPLACE_INITRD=
165 REMOVE_BTRFS=
166 ADD_BTRFS=
163else 167else
164 REPLACE_INITRD=y 168 REPLACE_INITRD=y
165 REMOVE_BTRFS=y 169 REMOVE_BTRFS=y
166 ADD_BTRFS=y 170 ADD_BTRFS=y
167fi 171fi
172REPLACE_INITRD= # TODO: fix initrd replacing
168 173
169if [ "$QUICK_TEST" ]; then 174if [ "$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 \