diff options
Diffstat (limited to 'hosts/nas1')
-rw-r--r-- | hosts/nas1/postinst | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hosts/nas1/postinst b/hosts/nas1/postinst index 82888aa..deb9438 100644 --- a/hosts/nas1/postinst +++ b/hosts/nas1/postinst @@ -7,7 +7,11 @@ in_target apt-get -q -y --purge autoremove || return 1 # Remove packages from APT cache. in_target apt-get clean || return 1 -# Install GRUB. +# Fix booting and install GRUB. +mv "${target}/etc/default/grub" "${target}/etc/default/grub.dist" +sed \ + -e '^s/\(GRUB_CMDLINE_LINUX=".*\)"$/\1nomodeset"/' + "${target}/etc/default/grub.dist" 1>"${target}/etc/default/grub" in_target update-grub in_target grub-install "${dev}" |