3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/login.sh
Armijn Hemel 65742f6eb9 refactor install process:
* user is dropped into a shell, where the user can run tools like fdisk to partition a disk
* user needs to add a file called "disklayout" where it specifies SWAP, INSTALLDEVICE and TARGETDRIVE
* depending on the values of these the installscript might need to be fixed to get the GRUB configuration right

It's still somewhat inflexible, but it gives the user a bit more control than the old scheme

svn path=/nixu/trunk/; revision=6271
2006-08-27 14:14:59 +00:00

16 lines
362 B
Bash

#! @bash@/bin/sh -e
export PATH=@bash@/bin:@coreutilsdiet@/bin:@coreutils@/bin:@findutils@/bin:@utillinux@/bin:@utillinux@/sbin:@e2fsprogs@/sbin:@grub@/sbin:@sysvinitPath@/sbin:@gnugrep@/bin:@which@/bin:@gnutar@/bin:@busybox@/bin:@busybox@/sbin
#tty=$1
#exec < $tty > $tty 2>&1
echo
echo "=== Welcome to Nix! ==="
export HOME=/
cd $HOME
exec @bash@/bin/sh