Update postinst
This commit is contained in:
parent
a11c24b67f
commit
1d617b9672
5
debian/postinst
vendored
5
debian/postinst
vendored
@ -35,18 +35,17 @@ then
|
|||||||
# Check if luks is already configured in refind
|
# Check if luks is already configured in refind
|
||||||
if cat /boot/refind_linux.conf | grep -i 'rd.luks'
|
if cat /boot/refind_linux.conf | grep -i 'rd.luks'
|
||||||
then
|
then
|
||||||
true
|
true
|
||||||
else
|
else
|
||||||
sed -i "s#root=#rd.luks.name="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f2 | sed "s#UUID=##")"="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f1)" root=#" /boot/refind_linux.conf
|
sed -i "s#root=#rd.luks.name="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f2 | sed "s#UUID=##")"="$(cat /etc/crypttab | grep -v '^#' | head -n1 | cut -f1)" root=#" /boot/refind_linux.conf
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "ERROR 1: /etc/crypttab is invalid!\nFirst crypttab entry (presumed to be root luks) is not defined via UUID\nPlease make sure to define luks for root as the first entry in /etc/crypttab via UUID (u>
|
echo -e "ERROR 1: /etc/crypttab is invalid!\nFirst crypttab entry (presumed to be root luks) is not defined via UUID\nPlease make sure to define luks for root as the first entry in /etc/crypttab via UUID (use blkid)"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Add nvidia support if an nvidia card is detected
|
# Add nvidia support if an nvidia card is detected
|
||||||
if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia
|
if lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user