Lines 132-137
write_device() {
Link Here
|
132 |
GRUB_DEV= |
132 |
GRUB_DEV= |
133 |
for dev in $bootdev; do |
133 |
for dev in $bootdev; do |
134 |
GRUB_DEV="$(blockdev_get_symlink "$dev") $GRUB_DEV" |
134 |
GRUB_DEV="$(blockdev_get_symlink "$dev") $GRUB_DEV" |
|
|
135 |
|
136 |
# try to overcome an error occuring when a root partition is chosen to be encrypted with LUKS |
137 |
if [ -L /dev/mapper/*_luks ]; then |
138 |
if ! grep "^GRUB_ENABLE_CRYPTODISK=" /etc/default/grub > /dev/null 2>&1; then |
139 |
echo "GRUB_ENABLE_CRYPTODISK=y" >> /etc/default/grub |
140 |
else |
141 |
sed -i "s|GRUB_ENABLE_CRYPTODISK=.*|GRUB_ENABLE_CRYPTODISK=y|" /etc/default/grub |
142 |
fi |
143 |
fi |
144 |
|
135 |
grub-install $target "$dev" >> $gruboutput 2>&1 |
145 |
grub-install $target "$dev" >> $gruboutput 2>&1 |
136 |
if [ $? -ne 0 ]; then |
146 |
if [ $? -ne 0 ]; then |
137 |
if grep blocklists $gruboutput; then |
147 |
if grep blocklists $gruboutput; then |
138 |
- |
|
|