mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
* Refactoring.
svn path=/nixos/trunk/; revision=7533
This commit is contained in:
parent
acacfda1b2
commit
b6b5bafa22
24 changed files with 2 additions and 2 deletions
21
system/system.sh
Normal file
21
system/system.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
source $stdenv/setup
|
||||
|
||||
ensureDir $out
|
||||
|
||||
ln -s $kernel $out/kernel
|
||||
ln -s $grub $out/grub
|
||||
ln -s $bootStage2 $out/init
|
||||
ln -s $initrd $out/initrd
|
||||
ln -s $activateConfiguration $out/activate
|
||||
ln -s $etc/etc $out/etc
|
||||
|
||||
echo "$kernelParams" > $out/kernel-params
|
||||
|
||||
cat > $out/menu.lst << GRUBEND
|
||||
kernel $kernel init=$bootStage2 $kernelParams
|
||||
initrd $initrd
|
||||
GRUBEND
|
||||
|
||||
ensureDir $out/bin
|
||||
substituteAll $switchToConfiguration $out/bin/switch-to-configuration
|
||||
chmod +x $out/bin/switch-to-configuration
|
Loading…
Add table
Add a link
Reference in a new issue