Corrections to make-iso9660-image.sh for bigger path lists.
svn path=/nixos/trunk/; revision=10156
This commit is contained in:
parent
e8ddb6fd2d
commit
ec727d660a
18
configuration/rescue-cd-closed.nix
Normal file
18
configuration/rescue-cd-closed.nix
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{platform ? __currentSystem} :
|
||||||
|
let
|
||||||
|
isoFun = import ./rescue-cd-configurable.nix;
|
||||||
|
in
|
||||||
|
(isoFun {
|
||||||
|
inherit platform;
|
||||||
|
lib = (import ../pkgs/lib);
|
||||||
|
|
||||||
|
networkNixpkgs = "";
|
||||||
|
manualEnabled = false;
|
||||||
|
rogueEnabled = false;
|
||||||
|
sshdEnabled = false;
|
||||||
|
fontConfigEnabled = false;
|
||||||
|
sudoEnable = false;
|
||||||
|
includeMemtest = false;
|
||||||
|
includeStdenv = false;
|
||||||
|
includeBuildDeps = true;
|
||||||
|
}).rescueCD
|
@ -23,24 +23,24 @@ if test -n "$bootable"; then
|
|||||||
bootFlags="-b $bootImage -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table"
|
bootFlags="-b $bootImage -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
touch pathlist
|
||||||
|
|
||||||
# Add the individual files.
|
# Add the individual files.
|
||||||
graftList=
|
|
||||||
for ((i = 0; i < ${#targets_[@]}; i++)); do
|
for ((i = 0; i < ${#targets_[@]}; i++)); do
|
||||||
graftList="$graftList ${targets_[$i]}=$(readlink -f ${sources_[$i]})"
|
echo "${targets_[$i]}=$(readlink -f ${sources_[$i]})" >> pathlist
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# Add the closures of the top-level store objects.
|
# Add the closures of the top-level store objects.
|
||||||
storePaths=$(perl $pathsFromGraph closure-*)
|
storePaths=$(perl $pathsFromGraph closure-*)
|
||||||
for i in $storePaths; do
|
for i in $storePaths; do
|
||||||
graftList="$graftList ${i:1}=$i"
|
echo "${i:1}=$i" >> pathlist
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# Also put a nix-pull manifest of the closures on the CD.
|
# Also put a nix-pull manifest of the closures on the CD.
|
||||||
printManifest=1 perl $pathsFromGraph closure-* > MANIFEST
|
printManifest=1 perl $pathsFromGraph closure-* > MANIFEST
|
||||||
graftList="$graftList MANIFEST=MANIFEST"
|
echo "MANIFEST=MANIFEST" >> pathlist
|
||||||
|
|
||||||
|
|
||||||
# Add symlinks to the top-level store objects.
|
# Add symlinks to the top-level store objects.
|
||||||
@ -50,14 +50,16 @@ for ((n = 0; n < ${#objects[*]}; n++)); do
|
|||||||
if test "$symlink" != "none"; then
|
if test "$symlink" != "none"; then
|
||||||
mkdir -p $(dirname ./$symlink)
|
mkdir -p $(dirname ./$symlink)
|
||||||
ln -s $object ./$symlink
|
ln -s $object ./$symlink
|
||||||
graftList="$graftList $symlink=./$symlink"
|
echo "$symlink=./$symlink" >> pathlist
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
cat pathlist
|
||||||
|
|
||||||
# !!! -f is a quick hack.
|
# !!! -f is a quick hack.
|
||||||
ensureDir $out/iso
|
ensureDir $out/iso
|
||||||
genisoimage -r -J -o $out/iso/$isoName $bootFlags \
|
genisoimage -r -J -o $out/iso/$isoName $bootFlags \
|
||||||
-graft-points $graftList
|
-graft-points -path-list pathlist
|
||||||
|
|
||||||
ensureDir $out/nix-support
|
ensureDir $out/nix-support
|
||||||
echo $system > $out/nix-support/system
|
echo $system > $out/nix-support/system
|
||||||
|
Loading…
x
Reference in New Issue
Block a user