Commit 897535df authored by Daniele's avatar Daniele
Browse files

Fix some conceptual errors in grub2.install.

Removed a routine which only mattered to 2.6 kernels, which we stopped shipping like one year ago.
Stopped running update-grub automatically, or it will mean that a user might have an older GRUB installed in its MBR reading a configuration file targeted for a newer GRUB, thus failing in some funny ways.
parent 8efeacef
......@@ -8,25 +8,6 @@ show_important_message() {
echo -e "\033[0;0m Also you can run \033[0;32m 'update-grub' \033[0;0m as root for generating grub.cfg"
}
delete_symlinks() {
if readlink /boot/kernel26.img; then
echo "removing backward-symlink"
rm -v /boot/kernel26.img
fi
if readlink /boot/kernel26-lts.img; then
echo "removing backward-symlink"
rm -v /boot/kernel26-lts.img
fi
if readlink /boot/vmlinuz26; then
echo "removing backward-symlink"
rm -v /boot/vmlinuz26
fi
if readlink /boot/vmlinuz26-lts; then
echo "removing backward-symlink"
rm -v /boot/vmlinuz26-lts
fi
}
post_install() {
if [ -f /boot/grub/grub.cfg.pacsave ]; then
echo "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
......@@ -40,7 +21,7 @@ post_install() {
for file in "${filelist[@]}"; do
install-info "${infodir}/${file}.gz" "${infodir}/dir" 2> /dev/null
done
delete_symlinks
show_important_message
}
......@@ -48,9 +29,8 @@ post_upgrade() {
for file in "${filelist[@]}"; do
install-info "${infodir}/${file}.gz" "${infodir}/dir" 2> /dev/null
done
delete_symlinks
show_important_message
update-grub
}
pre_remove() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment