* Option to disable the splash screen in the initrd.
svn path=/nixos/trunk/; revision=7755
This commit is contained in:
parent
340ff5200a
commit
cdb98f8418
@ -160,6 +160,15 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
name = ["boot" "initrd" "enableSplashScreen"];
|
||||||
|
default = true;
|
||||||
|
description = "
|
||||||
|
Whether to show a nice splash screen while booting.
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = ["networking" "useDHCP"];
|
name = ["networking" "useDHCP"];
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -49,7 +49,6 @@ rec {
|
|||||||
{ buildInputs = [pkgs.nukeReferences];
|
{ buildInputs = [pkgs.nukeReferences];
|
||||||
inherit (pkgsStatic) utillinux;
|
inherit (pkgsStatic) utillinux;
|
||||||
inherit (pkgsDiet) udev;
|
inherit (pkgsDiet) udev;
|
||||||
inherit (pkgs) splashutils;
|
|
||||||
e2fsprogs = pkgs.e2fsprogsDiet;
|
e2fsprogs = pkgs.e2fsprogsDiet;
|
||||||
allowedReferences = []; # prevent accidents like glibc being included in the initrd
|
allowedReferences = []; # prevent accidents like glibc being included in the initrd
|
||||||
}
|
}
|
||||||
@ -57,7 +56,6 @@ rec {
|
|||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
cp $utillinux/bin/mount $utillinux/bin/umount $utillinux/sbin/pivot_root $out/bin
|
cp $utillinux/bin/mount $utillinux/bin/umount $utillinux/sbin/pivot_root $out/bin
|
||||||
cp -p $e2fsprogs/sbin/fsck* $e2fsprogs/sbin/e2fsck $out/bin
|
cp -p $e2fsprogs/sbin/fsck* $e2fsprogs/sbin/e2fsck $out/bin
|
||||||
cp $splashutils/bin/splash_helper $out/bin
|
|
||||||
cp $udev/sbin/udevd $udev/sbin/udevtrigger $udev/sbin/udevsettle $out/bin
|
cp $udev/sbin/udevd $udev/sbin/udevtrigger $udev/sbin/udevsettle $out/bin
|
||||||
nuke-refs $out/bin/*
|
nuke-refs $out/bin/*
|
||||||
";
|
";
|
||||||
@ -93,7 +91,8 @@ rec {
|
|||||||
{ object = bootStage1;
|
{ object = bootStage1;
|
||||||
symlink = "/init";
|
symlink = "/init";
|
||||||
}
|
}
|
||||||
{ object = extraUtils;
|
] ++ (if config.get ["boot" "initrd" "enableSplashScreen"] then [
|
||||||
|
{ object = pkgs.splashutils;
|
||||||
suffix = "/bin/splash_helper";
|
suffix = "/bin/splash_helper";
|
||||||
symlink = "/sbin/splash_helper";
|
symlink = "/sbin/splash_helper";
|
||||||
}
|
}
|
||||||
@ -103,7 +102,7 @@ rec {
|
|||||||
};
|
};
|
||||||
symlink = "/etc/splash";
|
symlink = "/etc/splash";
|
||||||
}
|
}
|
||||||
];
|
] else []);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user