Compare commits
1 commit
6c859dbaa8
...
bf1c266e30
Author | SHA1 | Date | |
---|---|---|---|
bf1c266e30 |
2 changed files with 2 additions and 5 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,8 +4,6 @@
|
|||
.task
|
||||
/result
|
||||
/target
|
||||
/out
|
||||
/initrd.gz
|
||||
.*.swp
|
||||
.*.swo
|
||||
.nixos-test-history
|
||||
|
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
kernel = pkgs.callPackage ./kernel { };
|
||||
glibc = pkgs.callPackage ./glibc { };
|
||||
systemd = pkgs.callPackage ./systemd { };
|
||||
|
||||
mkinitrd = pkgs.writeShellScriptBin "mkinitrd" ''
|
||||
echo "make initrd..."
|
||||
mkdir -p out
|
||||
|
@ -115,7 +113,7 @@
|
|||
chmod 644 ./etc/group
|
||||
|
||||
# get shared libs
|
||||
find . -type f -executable | xargs ldd 2> /dev/null | awk '{print $3}' | grep -v systemd | sort -u | xargs cp -t usr/lib
|
||||
find . -type f -executable | xargs ldd | awk '{print $3}' | grep -v systemd | sort -u | xargs cp -t usr/lib
|
||||
find . -type f -executable | xargs chmod 755
|
||||
|
||||
# FIXME: hacky patch elf patching. Is there a better way????????
|
||||
|
@ -127,6 +125,7 @@
|
|||
# gen initrd
|
||||
find . -print0 | ${pkgs.lib.getExe pkgs.cpio} --null --owner=root:root -o --format=newc | ${pkgs.lib.getExe pkgs.gzip} -9 > ../initrd.gz
|
||||
'';
|
||||
systemd = pkgs.callPackage ./systemd { };
|
||||
};
|
||||
|
||||
checks = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue