#!/bin/sh
+# debian/lilo.config for debconf to be executed before unpacking
set -e
db_text high lilo/new-config || true
db_go
else
- # Check for deprecated PATH. Bug#267538
- if grep -q "^bitmap=/usr/share/lilo/contrib" /etc/lilo.conf; then
- db_beginblock
- db_text high lilo/bad_bitmap || true
- db_endblock
- db_go
- fi
-
if grep -q "^[[:space:]]*large-memory" /etc/lilo.conf; then
db_set lilo/add_large_memory false
else
have_to_run=1
fi
fi
-fi
-if [ x"$isfresh" = x"0" ]; then
- if [ -e /boot/boot.b ]; then
- have_to_run=1
+ # Convert old options 'boot' and 'root' to newer diskid or uuid
+ if grep -q -E "^boot|^root|^\troot" /etc/lilo.conf; then
db_beginblock
- db_text high lilo/upgrade || true
+ db_text high lilo/diskid_uuid || true
db_endblock
db_go
fi
fi
-#db_set lilo/runme = false
-
if [ x"$have_to_run" != x"0" ]; then
db_beginblock
db_input high lilo/runme || true