Compare commits
1 commit
bf1c266e30
...
6c859dbaa8
Author | SHA1 | Date | |
---|---|---|---|
6c859dbaa8 |
2 changed files with 5 additions and 2 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -4,6 +4,8 @@
|
|||
.task
|
||||
/result
|
||||
/target
|
||||
/out
|
||||
/initrd.gz
|
||||
.*.swp
|
||||
.*.swo
|
||||
.nixos-test-history
|
||||
|
|
|
@ -32,6 +32,8 @@
|
|||
|
||||
kernel = pkgs.callPackage ./kernel { };
|
||||
glibc = pkgs.callPackage ./glibc { };
|
||||
systemd = pkgs.callPackage ./systemd { };
|
||||
|
||||
mkinitrd = pkgs.writeShellScriptBin "mkinitrd" ''
|
||||
echo "make initrd..."
|
||||
mkdir -p out
|
||||
|
@ -113,7 +115,7 @@
|
|||
chmod 644 ./etc/group
|
||||
|
||||
# get shared libs
|
||||
find . -type f -executable | xargs ldd | awk '{print $3}' | grep -v systemd | sort -u | xargs cp -t usr/lib
|
||||
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 chmod 755
|
||||
|
||||
# FIXME: hacky patch elf patching. Is there a better way????????
|
||||
|
@ -125,7 +127,6 @@
|
|||
# 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