3
. /usr/share/debconf/confmodule
5
. /usr/share/grub-installer/functions.sh
7
db_progress START 0 2 grub-installer/progress/title
8
db_progress INFO grub-installer/progress/step_bootdev
10
db_input critical grub-installer/bootdev
17
db_get grub-installer/bootdev
19
if echo "$bootdev" | grep -qv '('; then
20
mappedbootdev="$(mapdevfs "$bootdev")" || true
21
if [ "$mappedbootdev" ]; then
22
bootdev="$mappedbootdev"
27
db_subst grub-installer/progress/step_install_loader BOOTDEV "$bootdev"
28
db_progress INFO grub-installer/progress/step_install_loader
32
if ! is_floppy "$bootdev"; then
33
if chroot /target /sbin/grub-install -h 2>&1 | grep -q no-floppy; then
34
floppyparam="--no-floppy"
38
if ! log-output -t grub-installer chroot /target /sbin/grub-install --recheck $floppyparam "$bootdev"; then
39
db_subst grub-installer/grub-install-failed BOOTDEV "$bootdev"
40
db_input critical grub-installer/grub-install-failed BOOTDEV "$bootdev"