2005-08-03 19:59:23 +02:00
|
|
|
#! @bash@/bin/sh -e
|
2005-08-03 14:00:42 +02:00
|
|
|
|
2006-08-27 16:14:59 +02:00
|
|
|
export PATH=/bin:/sbin:@bash@/bin:@findutils@/bin:@e2fsprogs@/sbin:@grub@/sbin:@sysvinitPath@/sbin:@eject@/bin:@dhcp@/sbin:@modutils@/sbin:@busybox@/bin:@busybox@/sbin
|
2005-08-28 02:51:34 +02:00
|
|
|
|
2005-08-14 03:40:36 +02:00
|
|
|
kernel=@kernel@
|
2006-01-07 15:36:13 +01:00
|
|
|
xawtv=@xawtv@
|
2004-02-14 23:56:51 +01:00
|
|
|
|
2006-08-05 01:39:59 +02:00
|
|
|
narStorePaths=/cdrom/narstorepaths
|
2005-08-27 02:04:30 +02:00
|
|
|
|
2005-07-06 18:00:20 +02:00
|
|
|
sysvinitPath=@sysvinitPath@
|
|
|
|
bootPath=@bootPath@
|
2005-08-09 18:51:26 +02:00
|
|
|
modutils=@modutils@
|
2005-08-28 02:51:34 +02:00
|
|
|
mingetty=@mingetty@
|
2004-02-14 23:56:51 +01:00
|
|
|
|
2006-01-07 15:36:13 +01:00
|
|
|
echo formatting target device
|
|
|
|
|
2006-08-27 16:14:59 +02:00
|
|
|
if test -e disklayout; then
|
|
|
|
source disklayout
|
|
|
|
else
|
|
|
|
echo no disk layout configuration present...exiting
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
# $targetdrive is also used by GRUB!
|
|
|
|
#targetdrive=/dev/hda
|
|
|
|
targetdrive=${TARGETDRIVE}
|
|
|
|
#device=${targetdrive}1
|
|
|
|
device=${INSTALLDEVICE}
|
2005-08-14 03:40:36 +02:00
|
|
|
mkfs.ext2 ${device}
|
2006-08-27 16:14:59 +02:00
|
|
|
#swapdevice=${targetdrive}2
|
|
|
|
swapdevice=${SWAP}
|
2006-01-07 15:36:13 +01:00
|
|
|
mkswap $swapdevice
|
|
|
|
|
|
|
|
echo enabling swap
|
2005-08-05 15:48:22 +02:00
|
|
|
|
2006-01-07 15:36:13 +01:00
|
|
|
swapon $swapdevice
|
2005-08-03 14:00:42 +02:00
|
|
|
|
2005-08-04 16:45:27 +02:00
|
|
|
#if ! test -n "$1"
|
|
|
|
#then
|
|
|
|
# echo "need harddisk device for installing!"
|
|
|
|
# exit
|
|
|
|
#else
|
|
|
|
# device=$1
|
|
|
|
#fi
|
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
##
|
|
|
|
## Two convenience shell functions
|
|
|
|
##
|
2005-07-14 18:57:39 +02:00
|
|
|
|
2004-02-14 23:56:51 +01:00
|
|
|
make_dir() {
|
|
|
|
mode=$1
|
|
|
|
name=$2
|
|
|
|
echo creating $name...
|
|
|
|
if ! test -d $root/$name; then mkdir $root/$name; fi
|
|
|
|
chmod $mode $root/$name
|
|
|
|
}
|
|
|
|
|
2004-08-06 15:50:42 +02:00
|
|
|
touch_file() {
|
|
|
|
name=$1
|
2004-08-06 19:22:24 +02:00
|
|
|
echo touching $name...
|
2004-08-06 15:50:42 +02:00
|
|
|
if ! test -d $root/$name; then touch $root/$name; fi
|
|
|
|
}
|
2004-02-14 23:56:51 +01:00
|
|
|
root=/tmp/mnt
|
|
|
|
|
2005-08-14 16:34:46 +02:00
|
|
|
mkdir -p $root
|
2005-07-29 18:54:36 +02:00
|
|
|
|
2005-08-14 17:08:15 +02:00
|
|
|
echo mounting the target drive
|
2005-08-04 16:45:27 +02:00
|
|
|
|
2005-08-14 17:08:15 +02:00
|
|
|
mount -t ext2 $device $root
|
2005-07-29 18:54:36 +02:00
|
|
|
|
2005-08-05 15:48:22 +02:00
|
|
|
##
|
|
|
|
## Create a directory tree on the installation disk.
|
|
|
|
##
|
|
|
|
|
2005-08-14 17:08:15 +02:00
|
|
|
echo creating file system hierarchy on target drive
|
|
|
|
|
2004-08-06 19:22:24 +02:00
|
|
|
make_dir 00755 /bin
|
2005-08-13 01:51:12 +02:00
|
|
|
make_dir 00755 /boot
|
2006-08-03 00:42:56 +02:00
|
|
|
make_dir 00755 /cdrom
|
2004-02-14 23:56:51 +01:00
|
|
|
make_dir 00755 /dev
|
2005-08-22 16:23:01 +02:00
|
|
|
make_dir 00755 /dev/pts
|
2004-02-18 11:56:07 +01:00
|
|
|
make_dir 00755 /etc # global non-constant configuration
|
2005-12-13 15:28:55 +01:00
|
|
|
make_dir 00755 /etc/ssh
|
2005-10-19 16:14:08 +02:00
|
|
|
make_dir 00755 /etc/sysconfig
|
2005-08-14 03:40:36 +02:00
|
|
|
make_dir 00755 /home
|
2005-08-20 00:39:48 +02:00
|
|
|
make_dir 00755 /lib
|
2006-08-09 00:35:40 +02:00
|
|
|
make_dir 00755 /lib/modules
|
2005-08-14 03:40:36 +02:00
|
|
|
make_dir 00755 /mnt
|
|
|
|
make_dir 00755 /mnt/host
|
2004-02-14 23:56:51 +01:00
|
|
|
make_dir 00755 /nix
|
|
|
|
make_dir 00755 /nix/store
|
|
|
|
make_dir 00755 /nix/var
|
|
|
|
make_dir 00755 /nix/var/nix
|
|
|
|
make_dir 00755 /nix/var/nix/db
|
2005-08-24 16:04:07 +02:00
|
|
|
make_dir 00755 /nix/var/nix/gcroots
|
2005-07-14 18:57:39 +02:00
|
|
|
make_dir 00755 /nix/var/nix/manifests
|
2005-08-24 16:04:07 +02:00
|
|
|
make_dir 00755 /nix/var/nix/profiles
|
|
|
|
make_dir 00755 /nix/var/nix/temproots
|
2004-02-14 23:56:51 +01:00
|
|
|
make_dir 00755 /nix/var/log
|
|
|
|
make_dir 00755 /nix/var/log/nix
|
2005-08-14 03:40:36 +02:00
|
|
|
make_dir 00755 /proc
|
2005-08-22 01:15:24 +02:00
|
|
|
make_dir 00750 /root
|
2005-08-14 03:40:36 +02:00
|
|
|
make_dir 00755 /sbin
|
2005-08-14 16:34:46 +02:00
|
|
|
make_dir 00755 /sys
|
2005-08-14 03:40:36 +02:00
|
|
|
make_dir 01777 /tmp
|
|
|
|
make_dir 00755 /usr
|
|
|
|
make_dir 00755 /var
|
2005-12-13 15:24:31 +01:00
|
|
|
make_dir 00755 /var/empty
|
|
|
|
make_dir 00111 /var/empty/sshd
|
2005-12-22 20:34:36 +01:00
|
|
|
make_dir 00755 /var/lock
|
|
|
|
make_dir 00755 /var/lock/subsys
|
2005-08-20 23:49:53 +02:00
|
|
|
make_dir 00755 /var/log
|
|
|
|
make_dir 00755 /var/run
|
2006-01-07 02:24:29 +01:00
|
|
|
make_dir 00755 /var/run/usb
|
2005-08-20 23:49:53 +02:00
|
|
|
make_dir 00755 /var/spool
|
|
|
|
make_dir 00755 /var/state
|
2005-08-21 21:56:30 +02:00
|
|
|
make_dir 00755 /var/state/dhcp
|
2005-08-20 23:49:53 +02:00
|
|
|
make_dir 00755 /var/tmp
|
2004-02-18 11:56:07 +01:00
|
|
|
|
2005-08-05 15:48:22 +02:00
|
|
|
##
|
|
|
|
## Add a few devices to /dev on the install disk. This is by far complete.
|
|
|
|
##
|
|
|
|
|
2005-08-14 17:08:15 +02:00
|
|
|
echo making device nodes on target drive
|
|
|
|
|
2006-08-29 23:58:33 +02:00
|
|
|
mknod -m 0666 $root/dev/null c 1 3
|
2005-08-14 03:40:36 +02:00
|
|
|
mknod -m 0600 $root/dev/console c 5 1
|
2005-08-14 15:50:29 +02:00
|
|
|
mknod -m 0600 $root/dev/tty c 5 0
|
|
|
|
mknod -m 0600 $root/dev/tty0 c 4 0
|
|
|
|
mknod -m 0600 $root/dev/tty1 c 4 1
|
2006-07-04 22:38:14 +02:00
|
|
|
mknod -m 0600 $root/dev/tty2 c 4 2
|
|
|
|
mknod -m 0600 $root/dev/tty3 c 4 3
|
2005-08-17 22:51:19 +02:00
|
|
|
mknod -m 0444 $root/dev/urandom c 1 9
|
2005-07-19 17:39:32 +02:00
|
|
|
|
2004-02-18 11:56:07 +01:00
|
|
|
rm -f $root/etc/mtab
|
2005-09-02 18:47:58 +02:00
|
|
|
ln -s /proc/mounts $root/etc/mtab
|
2004-02-14 23:56:51 +01:00
|
|
|
|
2006-08-07 01:59:31 +02:00
|
|
|
# prevent df from barfing
|
|
|
|
ln -s /proc/mounts /etc/mtab
|
2005-12-24 12:50:42 +01:00
|
|
|
|
2005-08-05 15:48:22 +02:00
|
|
|
## Probe for CD device which contains our CD here and mount /nix and
|
|
|
|
## /nixpkgs from it inside the ramdisk. Anaconda uses kudzu for this.
|
|
|
|
## Find out how Knoppix and SUSE do this...
|
|
|
|
|
2005-08-12 18:26:51 +02:00
|
|
|
DEVICES="/dev/hd?"
|
|
|
|
|
|
|
|
for i in ${DEVICES}
|
|
|
|
do
|
|
|
|
echo "Looking for CDROM in: $i"
|
2005-09-02 18:47:58 +02:00
|
|
|
if mount -t iso9660 $i /cdrom >/dev/null 2>&1
|
2005-08-12 18:26:51 +02:00
|
|
|
then
|
2005-09-02 18:47:58 +02:00
|
|
|
if test -f /cdrom/NIXOS
|
|
|
|
then
|
|
|
|
cddevice=$i
|
|
|
|
echo "Accessing NixOS CDROM at $i"
|
|
|
|
break
|
|
|
|
fi
|
2005-08-28 02:51:34 +02:00
|
|
|
fi
|
2005-08-12 18:26:51 +02:00
|
|
|
done
|
|
|
|
|
2006-08-03 00:42:56 +02:00
|
|
|
echo mounting /cdrom in the target
|
2005-08-28 02:51:34 +02:00
|
|
|
|
2006-08-03 00:42:56 +02:00
|
|
|
mount --bind /cdrom $root/cdrom
|
2006-08-08 22:24:33 +02:00
|
|
|
mount --bind /cdrom/lib /lib
|
2006-08-03 00:42:56 +02:00
|
|
|
|
2006-08-03 15:43:44 +02:00
|
|
|
echo switch to /nix from CD
|
2006-08-03 00:42:56 +02:00
|
|
|
## starting here it's OK to have full blown glibc
|
|
|
|
|
2005-08-12 18:26:51 +02:00
|
|
|
mount --bind /cdrom/nix /nix
|
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
#echo probing for hardware...
|
2005-12-24 12:50:42 +01:00
|
|
|
|
2006-01-06 16:51:19 +01:00
|
|
|
#kudzu
|
2005-08-09 18:51:26 +02:00
|
|
|
|
2005-07-19 17:39:32 +02:00
|
|
|
export NIX_DATA_DIR=$root/nix/share
|
|
|
|
export NIX_LOG_DIR=$root/nix/log/nix
|
2005-07-14 18:57:39 +02:00
|
|
|
export NIX_STATE_DIR=$root/nix/var/nix
|
2005-07-19 17:39:32 +02:00
|
|
|
export NIX_CONF_DIR=$root/nix/etc
|
2006-06-25 00:14:43 +02:00
|
|
|
NIX=@nix@/bin
|
2004-02-14 23:56:51 +01:00
|
|
|
|
2006-08-08 22:24:33 +02:00
|
|
|
echo bringing up networking...
|
|
|
|
|
2006-08-08 23:31:34 +02:00
|
|
|
#labmachine has 3c59x
|
|
|
|
#modprobe 3c59x
|
|
|
|
#vmware has pcnet32
|
|
|
|
modprobe pcnet32
|
2006-08-08 22:24:33 +02:00
|
|
|
dhclient eth0
|
|
|
|
|
2006-08-08 23:31:34 +02:00
|
|
|
cp /etc/resolv.conf $root/etc/resolv.conf
|
2005-12-24 12:50:42 +01:00
|
|
|
|
2006-01-06 16:51:19 +01:00
|
|
|
#nic=`kudzu -p | grep eth | sort | uniq | cut -d ' ' -f 2`
|
2005-12-24 12:50:42 +01:00
|
|
|
|
2006-01-06 16:51:19 +01:00
|
|
|
#echo "NIC: $nic"
|
2005-12-24 22:15:24 +01:00
|
|
|
|
2004-02-14 23:56:51 +01:00
|
|
|
echo initialising Nix DB...
|
2006-06-25 00:14:43 +02:00
|
|
|
$NIX/nix-store --init
|
2004-02-14 23:56:51 +01:00
|
|
|
|
|
|
|
echo verifying Nix DB...
|
2006-06-25 00:14:43 +02:00
|
|
|
$NIX/nix-store --verify
|
2004-02-14 23:56:51 +01:00
|
|
|
|
2005-07-11 19:59:19 +02:00
|
|
|
echo copying nixpkgs...
|
2006-08-07 01:59:31 +02:00
|
|
|
tar --directory=$root -zxf /cdrom/nixpkgs.tgz
|
2005-07-19 17:39:32 +02:00
|
|
|
|
|
|
|
make_dir 0755 /tmp/scripts
|
2005-08-12 18:26:51 +02:00
|
|
|
cp -fa /cdrom/scripts $root/tmp
|
2005-07-11 19:59:19 +02:00
|
|
|
|
2005-07-19 17:39:32 +02:00
|
|
|
echo adding packages
|
2005-08-14 17:08:15 +02:00
|
|
|
|
2005-07-19 17:39:32 +02:00
|
|
|
export NIX_ROOT=$root
|
|
|
|
unset NIX_DATA_DIR
|
|
|
|
unset NIX_LOG_DIR
|
|
|
|
unset NIX_STATE_DIR
|
|
|
|
unset NIX_CONF_DIR
|
|
|
|
|
2005-08-26 01:10:36 +02:00
|
|
|
cp /cdrom/mystorepaths $root/tmp
|
2005-07-29 18:54:36 +02:00
|
|
|
|
|
|
|
echo copying store
|
|
|
|
|
2006-08-07 01:59:31 +02:00
|
|
|
tar --directory=$root -zxf /cdrom/nixstore.tgz
|
2005-07-19 17:39:32 +02:00
|
|
|
|
2005-08-27 02:04:30 +02:00
|
|
|
echo registering valid paths...
|
|
|
|
|
2006-06-25 00:14:43 +02:00
|
|
|
$NIX/nix-store --register-validity < $root/tmp/mystorepaths
|
2006-08-03 00:42:56 +02:00
|
|
|
|
|
|
|
unset NIX_ROOT
|
|
|
|
export NIX_DATA_DIR=$root/nix/share
|
|
|
|
export NIX_LOG_DIR=$root/nix/log/nix
|
|
|
|
export NIX_STATE_DIR=$root/nix/var/nix
|
|
|
|
export NIX_CONF_DIR=$root/nix/etc
|
|
|
|
|
|
|
|
echo creating /bin/sh
|
|
|
|
ln -s @bashGlibc@/bin/sh $root/bin/sh
|
|
|
|
|
|
|
|
echo adding manifest
|
|
|
|
$NIX/nix-pull file:///cdrom/MANIFEST
|
|
|
|
|
|
|
|
export NIX_ROOT=$root
|
|
|
|
unset NIX_DATA_DIR
|
|
|
|
unset NIX_LOG_DIR
|
|
|
|
unset NIX_STATE_DIR
|
|
|
|
unset NIX_CONF_DIR
|
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
## Fix this. Probably nix-instantiate, then nix-store -r.
|
|
|
|
## Also make sure everything gets installed into an actual profile!
|
|
|
|
|
2006-08-07 21:48:18 +02:00
|
|
|
$NIX/nix-env -iKf /nixpkgs/trunk/pkgs/top-level/all-packages.nix -A nixUnstable
|
|
|
|
$NIX/nix-env -iKf /nixpkgs/trunk/pkgs/top-level/all-packages.nix -A coreutils
|
|
|
|
$NIX/nix-env -iKf /nixpkgs/trunk/pkgs/top-level/all-packages.nix -A gnugrep
|
|
|
|
#$NIX/nix-env -iKf /nixpkgs/trunk/pkgs/top-level/all-packages.nix -A kernel
|
|
|
|
$NIX/nix-env -iKf /nixpkgs/trunk/pkgs/top-level/all-packages.nix -A kernelscripts
|
|
|
|
$NIX/nix-env -iKf /nixpkgs/trunk/pkgs/top-level/all-packages.nix -A grub
|
2005-08-27 02:04:30 +02:00
|
|
|
|
2006-08-05 01:39:59 +02:00
|
|
|
cat $narStorePaths | xargs -n 1 -i% $NIX/nix-env -i %
|
|
|
|
|
2004-02-14 23:56:51 +01:00
|
|
|
echo setting init symlink...
|
|
|
|
rm -f $root/init
|
2005-08-28 02:51:34 +02:00
|
|
|
#ln -s $sysvinitPath/sbin/init $root/init
|
|
|
|
ln -s @sysvinitPath@/sbin/init $root/sbin/init
|
2005-10-16 23:48:33 +02:00
|
|
|
#ln -s @bash@/bin/bash $root/bin/bash
|
2004-02-18 11:56:07 +01:00
|
|
|
|
|
|
|
echo setting up inittab...
|
|
|
|
rm -f $root/etc/inittab
|
|
|
|
echo "id:2:initdefault:" >> $root/etc/inittab
|
2004-02-18 15:56:32 +01:00
|
|
|
echo "si::bootwait:$bootPath/bin/boot.sh" >> $root/etc/inittab
|
|
|
|
echo "ht:06:wait:$bootPath/bin/halt.sh" >> $root/etc/inittab
|
2005-08-14 15:50:29 +02:00
|
|
|
echo "1:2345:respawn:$bootPath/bin/login.sh /dev/tty1" >> $root/etc/inittab
|
2006-01-07 15:36:13 +01:00
|
|
|
echo "#2:2345:respawn:$mingetty/sbin/mingetty tty2" >> $root/etc/inittab
|
|
|
|
echo "#3:2345:respawn:$mingetty/sbin/mingetty tty3" >> $root/etc/inittab
|
2004-02-19 13:49:00 +01:00
|
|
|
#echo "2:2345:respawn:$bootPath/bin/login.sh /dev/ttys/1" >> $root/etc/inittab
|
|
|
|
|
|
|
|
echo setting up networking information...
|
2005-12-24 12:50:42 +01:00
|
|
|
|
2004-02-19 13:49:00 +01:00
|
|
|
make_dir 00755 /etc/networking
|
2005-08-13 01:40:12 +02:00
|
|
|
#cp /etc/resolv.conf $root/etc
|
2004-02-19 13:49:00 +01:00
|
|
|
rm -f $root/etc/hosts
|
|
|
|
echo "127.0.0.1 localhost" >> $root/etc/hosts
|
2005-12-24 12:50:42 +01:00
|
|
|
|
|
|
|
echo storing hardware information...
|
|
|
|
|
2006-01-06 16:51:19 +01:00
|
|
|
#kudzu -p > $root/etc/sysconfig/hwconf
|
2005-12-24 22:15:24 +01:00
|
|
|
#cp /etc/modprobe.conf $root/etc/
|
2005-08-05 15:48:22 +02:00
|
|
|
|
2005-08-21 19:39:47 +02:00
|
|
|
echo setting up initial account information...
|
|
|
|
|
|
|
|
echo "root:x:0:root" > $root/etc/group
|
2005-12-13 15:24:31 +01:00
|
|
|
echo "sshd:x:74:" >> $root/etc/group
|
2005-08-21 19:39:47 +02:00
|
|
|
echo "root:x:0:0:root:/root:/bin/sh" > $root/etc/passwd
|
2005-12-13 15:24:31 +01:00
|
|
|
echo "sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin" >> $root/etc/passwd
|
|
|
|
echo "root::12757:0:99999:7:::" >> $root/etc/shadow
|
|
|
|
echo "sshd:!!:12757:0:99999:7:::" >> $root/etc/shadow
|
2005-08-21 19:39:47 +02:00
|
|
|
|
2005-10-11 21:39:41 +02:00
|
|
|
echo default profile for root
|
|
|
|
echo "source @nix@/etc/profile.d/nix.sh" > $root/root/.profile
|
|
|
|
|
2005-12-24 22:15:24 +01:00
|
|
|
touch_file /etc/login.defs
|
2006-01-07 15:36:13 +01:00
|
|
|
touch_file /etc/services
|
2005-12-24 22:15:24 +01:00
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
##
|
|
|
|
## Do kernel stuff here.
|
|
|
|
##
|
2006-08-03 00:42:56 +02:00
|
|
|
strippedName=$(basename $root/@kernel@);
|
2005-08-20 23:49:53 +02:00
|
|
|
if echo "$strippedName" | grep -q '^[a-z0-9]\{32\}-'; then
|
2005-08-23 23:00:45 +02:00
|
|
|
strippedName=$(echo "$strippedName" | cut -c34- | cut -c 7-)
|
2005-08-20 23:49:53 +02:00
|
|
|
fi
|
|
|
|
|
2006-08-03 00:42:56 +02:00
|
|
|
kernelhash=$(basename $root/@kernel@);
|
2005-08-23 23:00:45 +02:00
|
|
|
if echo "$kernelhash" | grep -q '^[a-z0-9]\{32\}-'; then
|
|
|
|
kernelhash=$(echo "$kernelhash" | cut -c -32)
|
|
|
|
fi
|
2005-08-20 23:49:53 +02:00
|
|
|
|
2005-08-24 01:07:49 +02:00
|
|
|
version=$strippedName-$kernelhash
|
|
|
|
|
2006-08-07 21:48:18 +02:00
|
|
|
ln -s @kernelscripts@/lib/modules/$version $root/lib/modules/$version
|
2005-08-14 03:40:36 +02:00
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
##
|
|
|
|
## init
|
|
|
|
##
|
2006-02-01 14:31:52 +01:00
|
|
|
|
2005-08-17 21:19:54 +02:00
|
|
|
ln -s $device $root/dev/root
|
2005-09-02 18:47:58 +02:00
|
|
|
ln -s @sysvinitPath@/sbin/init /sbin/init
|
2005-08-14 03:40:36 +02:00
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
##
|
|
|
|
## Do funky stuff with grub here.
|
|
|
|
##
|
2006-02-01 14:31:52 +01:00
|
|
|
|
2005-08-14 16:34:46 +02:00
|
|
|
echo installing bootloader
|
|
|
|
|
|
|
|
grub-install --root-directory=${root} --no-floppy ${targetdrive}
|
|
|
|
|
2005-08-27 00:21:29 +02:00
|
|
|
# FIXME "root (hd0,0)"
|
|
|
|
cat > $root/boot/grub/menu.lst << GRUBEND
|
|
|
|
default=0
|
|
|
|
timeout=5
|
|
|
|
title NixOS
|
|
|
|
kernel @kernel@/vmlinuz root=$device
|
|
|
|
GRUBEND
|
|
|
|
|
2006-08-04 11:29:32 +02:00
|
|
|
echo clearing substitutes
|
|
|
|
|
|
|
|
$NIX/nix-store --clear-substitutes
|
2006-08-03 00:42:56 +02:00
|
|
|
|
2006-08-08 23:31:34 +02:00
|
|
|
echo clearing network information
|
|
|
|
|
|
|
|
rm $root/etc/resolv.conf
|
|
|
|
|
2005-08-31 14:02:28 +02:00
|
|
|
echo copying install log
|
|
|
|
|
|
|
|
cp /tmp/install-log $root/root
|
|
|
|
|
2006-08-28 00:18:39 +02:00
|
|
|
# bizar. busybox umount doesn't like things with --bind it seems.
|
2005-08-14 16:34:46 +02:00
|
|
|
echo umounting filesystem
|
|
|
|
|
2006-08-03 00:54:44 +02:00
|
|
|
umount $root/cdrom
|
2005-08-14 16:34:46 +02:00
|
|
|
umount $root
|
2005-09-02 18:47:58 +02:00
|
|
|
#umount /nix
|
2005-08-31 18:38:34 +02:00
|
|
|
umount /cdrom
|
2005-09-02 18:47:58 +02:00
|
|
|
#echo ejecting $cddevice
|
|
|
|
#eject $cddevice
|
2005-08-14 03:40:36 +02:00
|
|
|
|
|
|
|
echo install done
|
2005-08-31 18:38:34 +02:00
|
|
|
echo it\'s safe to turn off your machine
|
2006-08-27 16:14:59 +02:00
|
|
|
echo exiting install process
|
2005-08-31 18:38:34 +02:00
|
|
|
|
2006-08-27 16:14:59 +02:00
|
|
|
#while true; do
|
|
|
|
#sleep 60;
|
|
|
|
#done
|