Fixed luks issues hopefully now
This commit is contained in:
parent
a4a5ceff8f
commit
f89418e55b
1 changed files with 6 additions and 6 deletions
|
@ -274,22 +274,22 @@ function stage_step() {
|
||||||
eval "$(blkid -p --output export "$rootmount" | grep UUID)"
|
eval "$(blkid -p --output export "$rootmount" | grep UUID)"
|
||||||
rootUUID="$UUID"
|
rootUUID="$UUID"
|
||||||
|
|
||||||
${cmd} mkdir /mnt/gentoo/etc/dracut.d
|
|
||||||
|
|
||||||
if [[ "$DEBUG" ]]; then
|
if [[ "$DEBUG" ]]; then
|
||||||
echo "echo \"luksvol UUID=\"$luksUUID\" none luks,initramfs\" >> /mnt/gentoo/etc/crypttab"
|
echo "echo \"luksvol UUID=\"$luksUUID\" none luks,initramfs\" >> /mnt/gentoo/etc/crypttab"
|
||||||
if [[ ! -d "/mnt/gentoo/etc/dracut.conf.d" ]]; then
|
if [[ ! -d "/mnt/gentoo/etc/dracut.conf.d" ]]; then
|
||||||
echo "mkdir /mnt/gentoo/etc/dracut.conf.d &>/dev/null"
|
echo "mkdir /mnt/gentoo/etc/dracut.conf.d &>/dev/null"
|
||||||
echo "echo \"add_dracutmodules+=\\\" crypt dm rootfs-block \\\" > /mnt/gentoo/etc/dracut.conf.d/luks.conf"
|
|
||||||
echo "echo \"kernel_cmdline+=\\\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID \\\" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf"
|
|
||||||
fi
|
fi
|
||||||
|
echo "echo \"hostonly=\\\"yes\\\" > /mnt/gentoo/etc/dracut.conf.d/luks.conf"
|
||||||
|
echo "echo \"add_dracutmodules+=\\\" crypt dm rootfs-block \\\" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf"
|
||||||
|
echo "echo \"kernel_cmdline+=\\\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID \\\" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf"
|
||||||
else
|
else
|
||||||
echo "luksvol UUID=$luksUUID none luks,initramfs" >> /mnt/gentoo/etc/crypttab
|
echo "luksvol UUID=$luksUUID none luks,initramfs" >> /mnt/gentoo/etc/crypttab
|
||||||
if [[ ! -d "/mnt/gentoo/etc/dracut.conf.d" ]]; then
|
if [[ ! -d "/mnt/gentoo/etc/dracut.conf.d" ]]; then
|
||||||
mkdir /mnt/gentoo/etc/dracut.conf.d &>/dev/null
|
mkdir /mnt/gentoo/etc/dracut.conf.d &>/dev/null
|
||||||
echo "add_dracutmodules+=\" crypt dm rootfs-block \"" > /mnt/gentoo/etc/dracut.conf.d/luks.conf
|
|
||||||
echo "kernel_cmdline+=\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID \"" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf
|
|
||||||
fi
|
fi
|
||||||
|
echo "hostonly=\"yes\"" > /mnt/gentoo/etc/dracut.conf.d/luks.conf
|
||||||
|
echo "add_dracutmodules+=\" crypt dm rootfs-block \"" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf
|
||||||
|
echo "kernel_cmdline+=\" root=UUID=$rootUUID rd.luks.uuid=$luksUUID \"" >> /mnt/gentoo/etc/dracut.conf.d/luks.conf
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue