Revision 24249,
1017 bytes
checked in by amb, 15 years ago
(diff) |
s/jaunty/karmic/g, mostly.
|
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 | |
---|
6 | cp /debathena-karmic/preseed /target/root/debathena.preseed |
---|
7 | cp /debathena-karmic/install-debathena.sh /target/root |
---|
8 | if test -f /debathena-karmic/pxe-install-flag ; then |
---|
9 | cp /debathena-karmic/pxe-install-flag /target/root/pxe-install-flag |
---|
10 | fi |
---|
11 | |
---|
12 | . /lib/chroot-setup.sh |
---|
13 | |
---|
14 | chroot /target dpkg-divert --rename --add /usr/sbin/policy-rc.d |
---|
15 | if ! chroot_setup; then |
---|
16 | logger -t postinstall.sh -- "Target system not usable. Can't install Debathena." |
---|
17 | exit 1 |
---|
18 | fi |
---|
19 | |
---|
20 | chvt 5 |
---|
21 | chroot /target sh /root/install-debathena.sh < /dev/tty5 > /dev/tty5 2>&1 |
---|
22 | # This approach fails due to lingering processes keeping the |
---|
23 | # pipeline open and the script hung. |
---|
24 | # chroot /target sh /root/install-debathena.sh < /dev/tty5 2>&1 \ |
---|
25 | # | chroot /target tee /var/log/athena-install.log > /dev/tty5 |
---|
26 | sleep 5 |
---|
27 | |
---|
28 | chroot_cleanup |
---|
29 | chroot /target dpkg-divert --rename --remove /usr/sbin/policy-rc.d |
---|
30 | |
---|
31 | chvt 1 |
---|
Note: See
TracBrowser
for help on using the repository browser.