File: file-preseed.postinst

package info (click to toggle)
preseed 1.125
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 852 kB
  • sloc: sh: 442; perl: 153; makefile: 5
file content (23 lines) | stat: -rwxr-xr-x 578 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e

. /usr/share/debconf/confmodule
. /lib/preseed/preseed.sh

# Re-enable locale and kbd selection
echo 0 >/var/run/auto-install.active

# transitional kludge to deal with old path based locations
db_get preseed/file
[ "${RET#/floppy*}" != "$RET" ] && RET="floppy://${RET#/floppy}"
[ "${RET#/*}" != "$RET" ] && RET="file://$RET"
db_set preseed/file $RET

preseed preseed/file
preseed_command preseed/early_command

# check if fetch-method/floppy has set a flag
if [ -e /var/run/preseed-usedfloppy ]; then
	umount /media || true
	rm /var/run/preseed-usedfloppy
fi