3 .
/usr
/share
/debconf
/confmodule
19 logger
-t syslinux-installer
"$@"
31 mount |
grep "on $ROOT${1%/} " |
tail -n1 | cut
-d' ' -f1
37 info
"architecture: $ARCH"
40 bootfs
=$
(findfs
/boot
)
41 [ -n "$bootfs" ] || bootfs
="$rootfs"
43 db_input critical syslinux-installer
/bootdev || true
53 db_get syslinux-installer
/bootdev
58 apt-install
$EXTLINUX || exit_code
=$?
60 if [ $exit_code -ne 0 ] ; then
62 info
"Calling 'apt-install $EXTLINUX' failed"
63 db_subst syslinux-installer
/apt-install-failed EXTLINUX
"$EXTLINUX"
64 db_input critical syslinux-installer
/apt-install-failed || true
66 exit 10 # back up to menu
71 info
"Installing extlinux on '$bootdev'"
73 info
"Running in-target extlinux-install \"$bootdev\""
74 if log-output
-t syslinux-installer in-target extlinux-install
"$bootdev"; then
75 info
"extlinux-install ran successfully"
77 error
"Running 'extlinux-install \"$bootdev\"' failed."
78 db_subst syslinux-installer
/extlinux-install-failed BOOTDEV
"$bootdev"
79 db_input critical syslinux-installer
/extlinux-install-failed ||
[ $?
-eq 30 ]
84 info
"Running in-target extlinux-update"
85 if log-output
-t syslinux-installer in-target extlinux-update
; then
86 info
"extlinux-update ran successfully"
90 error
"Running 'in-target extlinux-update' failed."
91 db_input critical syslinux-installer
/extlinux-update-failed ||
[ $?
-eq 30 ]