restructure
This commit is contained in:
parent
430f931922
commit
8fbdd380c8
|
@ -6,8 +6,7 @@ diskid="${cfg[diskid]//-/_}"
|
||||||
if [[ ! "${cfg[fde_key_store]}" == "none" ]] && [[ ! "${cfg[fde_key_store]}" == "once" ]]; then
|
if [[ ! "${cfg[fde_key_store]}" == "none" ]] && [[ ! "${cfg[fde_key_store]}" == "once" ]]; then
|
||||||
if ! grep -q "GRUB_ENABLE_CRYPTODISK" "${dest}"/etc/default/grub; then
|
if ! grep -q "GRUB_ENABLE_CRYPTODISK" "${dest}"/etc/default/grub; then
|
||||||
echo "GRUB_ENABLE_CRYPTODISK=y" >> "${dest}"/etc/default/grub
|
echo "GRUB_ENABLE_CRYPTODISK=y" >> "${dest}"/etc/default/grub
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [[ ! -f "${dest}"/boot/volume.key ]] && [[ ! "${cfg[fde_key_store]}" == "twice" ]]; then
|
if [[ ! -f "${dest}"/boot/volume.key ]] && [[ ! "${cfg[fde_key_store]}" == "twice" ]]; then
|
||||||
dd bs=1 count=64 if=/dev/urandom of="${dest}"/boot/volume.key
|
dd bs=1 count=64 if=/dev/urandom of="${dest}"/boot/volume.key
|
||||||
|
|
Loading…
Reference in New Issue
Block a user