source: trunk/debathena/scripts/installer/pxe/jaunty/debathena-jaunty/postinstall.sh @ 23944

Revision 23944, 878 bytes checked in by geofft, 15 years ago (diff)
Use d-i-utils' chroot setup script before installing Debathena. Among other nice things like /proc, this creates a fake policy-rc.d and start-stop-daemon, so we don't start daemons in the installer (Trac: #301).
Line 
1#!/bin/sh
2
3# This is only invoked when the relevant preseed entry is passed in
4# during the preinstall questioning.  (Thus, not for vanilla installs.)
5
6cp /debathena-jaunty/preseed /target/root/debathena.preseed
7cp /debathena-jaunty/install-debathena.sh /target/root
8if test -f /debathena-jaunty/pxe-install-flag ; then
9  cp /debathena-jaunty/pxe-install-flag /target/root/pxe-install-flag
10fi
11
12. /lib/chroot-setup.sh
13
14if ! chroot_setup; then
15        logger -t postinstall.sh -- "Target system not usable. Can't install Debathena."
16        exit 1
17fi
18
19chvt 5
20chroot /target sh /root/install-debathena.sh < /dev/tty5 > /dev/tty5 2>&1
21# This approach fails due to lingering processes keeping the
22# pipeline open and the script hung.
23# chroot /target sh /root/install-debathena.sh < /dev/tty5 2>&1 \
24#     | chroot /target tee /var/log/athena-install.log > /dev/tty5
25sleep 5
26chroot_cleanup
27chvt 1
Note: See TracBrowser for help on using the repository browser.