preinit: parse rootfstype from kernel command line

This commit is contained in:
Daniel Barlow
2023-10-19 18:56:09 +01:00
parent f3225c2bd5
commit 61dc5beca8
5 changed files with 116 additions and 13 deletions

View File

@@ -15,7 +15,6 @@ stdenv.mkDerivation {
# NIX_DEBUG=2;
hardeningDisable = [ "all" ];
CFLAGS = "-Os -static -DPREINIT_USE_LIBC -fno-stack-protector -fpic -fPIC -I ./ -I ${kernel}/tools/include/nolibc";
postBuild = ''
$STRIP --remove-section=.note --remove-section=.comment preinit