diff options
| author | 2025-04-07 03:00:07 -0400 | |
|---|---|---|
| committer | 2025-04-07 03:00:07 -0400 | |
| commit | ad867dc84985e7f8820a530bd6f0625aefbe389d (patch) | |
| tree | 0fad52fb491c61f20e8d7e389bc61fa7104548f5 | |
| parent | ac91287279557e9d71a072a3c340229874c8d218 (diff) | |
Inject --update for apt to the calamres script which installs grub.
Otherwise unless the image is very fresh or there's been no grub update or
rebuild, grub fails to install on 404 errors.
| -rw-r--r-- | config/hooks/normal/193-calamares-apt-update.chroot | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/config/hooks/normal/193-calamares-apt-update.chroot b/config/hooks/normal/193-calamares-apt-update.chroot new file mode 100644 index 0000000..213def0 --- /dev/null +++ b/config/hooks/normal/193-calamares-apt-update.chroot @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -f /usr/sbin/bootloader-config ];then + grep -- --update /usr/sbin/bootloader-config || sed -i "s/apt-get/apt-get --update/" /usr/sbin/bootloader-config +else + grep -- --update /usr/share/calamares/helpers/calamares-bootloader-config || sed -i "s/apt-get/apt-get --update/" /usr/share/calamares/helpers/calamares-bootloader-config +fi |
