* Create /bin on the CD to suppress the /bin/sh symlink creation
error. * Put the top-level system config on the CD, otherwise root doesn't get a working login shell on the CD (and the system PATH is broken as well). svn path=/nixos/trunk/; revision=8658
This commit is contained in:
parent
a779e582cb
commit
7243eb1d1d
@ -79,6 +79,7 @@ needWritableDir /tmp 01777
|
|||||||
needWritableDir /var 0755
|
needWritableDir /var 0755
|
||||||
needWritableDir /nix/var 0755
|
needWritableDir /nix/var 0755
|
||||||
needWritableDir /root 0700
|
needWritableDir /root 0700
|
||||||
|
needWritableDir /bin 0755 # for the /bin/sh symlink
|
||||||
|
|
||||||
|
|
||||||
# Miscellaneous boot time cleanup.
|
# Miscellaneous boot time cleanup.
|
||||||
|
@ -92,7 +92,7 @@ rec {
|
|||||||
cdMountPoints = pkgs.runCommand "mount-points" {} "
|
cdMountPoints = pkgs.runCommand "mount-points" {} "
|
||||||
ensureDir $out
|
ensureDir $out
|
||||||
cd $out
|
cd $out
|
||||||
mkdir proc sys tmp etc dev var mnt nix nix/var root
|
mkdir proc sys tmp etc dev var mnt nix nix/var root bin
|
||||||
touch $out/${configuration.boot.rootLabel}
|
touch $out/${configuration.boot.rootLabel}
|
||||||
";
|
";
|
||||||
|
|
||||||
@ -174,6 +174,9 @@ rec {
|
|||||||
{ object = system.bootStage2;
|
{ object = system.bootStage2;
|
||||||
symlink = "/init";
|
symlink = "/init";
|
||||||
}
|
}
|
||||||
|
{ object = system.system;
|
||||||
|
symlink = "/system";
|
||||||
|
}
|
||||||
# To speed up the installation, provide the full stdenv.
|
# To speed up the installation, provide the full stdenv.
|
||||||
{ object = pkgs.stdenv;
|
{ object = pkgs.stdenv;
|
||||||
symlink = "none";
|
symlink = "none";
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#! @shell@
|
#! @shell@
|
||||||
|
|
||||||
systemConfig="$1"
|
systemConfig="$1"
|
||||||
|
if test -z "$systemConfig"; then
|
||||||
|
systemConfig="/system" # for the installation CD
|
||||||
|
fi
|
||||||
|
|
||||||
export PATH=/empty
|
export PATH=/empty
|
||||||
for i in @path@; do PATH=$PATH:$i/bin:$i/sbin; done
|
for i in @path@; do PATH=$PATH:$i/bin:$i/sbin; done
|
||||||
@ -140,9 +143,8 @@ hostname @hostName@
|
|||||||
|
|
||||||
|
|
||||||
# Make this configuration the current configuration.
|
# Make this configuration the current configuration.
|
||||||
if test -n "$systemConfig"; then
|
|
||||||
ln -sfn "$systemConfig" /var/run/current-system
|
ln -sfn "$systemConfig" /var/run/current-system
|
||||||
fi
|
|
||||||
|
|
||||||
# Prevent the current configuration from being garbage-collected.
|
# Prevent the current configuration from being garbage-collected.
|
||||||
ln -sfn /var/run/current-system /nix/var/nix/gcroots/current-system
|
ln -sfn /var/run/current-system /nix/var/nix/gcroots/current-system
|
||||||
|
Loading…
x
Reference in New Issue
Block a user