test
This commit is contained in:
parent
698ca255a1
commit
150602f6c9
|
@ -158,8 +158,7 @@ fi
|
|||
|
||||
for dir in dev proc sys run; do mkdir -p "${dest}"/$dir ; mount --rbind /$dir "${dest}"/$dir ; mount --make-rslave "${dest}"/$dir ; done
|
||||
|
||||
setconf add rootuuid "$(blkid -o value -s UUID ${target_partition})"
|
||||
setconf add partuuid "$(blkid -o value -s UUID /dev/mapper/voidvg.${diskid}-root)"
|
||||
setconf add partuuid "$(blkid -o value -s UUID ${target_partition_tmp})"
|
||||
[[ "${cfg[fde_key_store]}" == "once" ]] && setconf "add" "bootuuid" "$(blkid -o value -s UUID ${target_boot})"
|
||||
setconf add swapuuid "$(blkid -o value -s UUID /dev/mapper/voidvg.${diskid}-swap)"
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@ if [[ ! "${cfg[fde_key_store]}" == "none" ]]; then
|
|||
|
||||
if [[ "${cfg[fde_key_store]}" == "initramfs" ]]; then
|
||||
dd bs=1 count=64 if=/dev/urandom of=/boot/volume.key
|
||||
echo -n "${cfg[diskpw]}" | cryptsetup luksAddKey "${target_partition}" /boot/volume.key -d -
|
||||
echo -n "${cfg[diskpw]}" | cryptsetup luksAddKey "${target_partition_tmp}" /boot/volume.key -d -
|
||||
chmod 000 /boot/volume.key
|
||||
chmod -R g-rwx,o-rwx /boot
|
||||
echo 'install_items+=" /boot/volume.key /etc/crypttab "' > /etc/dracut.conf.d/crypt-ssh.conf
|
||||
|
|
Loading…
Reference in New Issue
Block a user