mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
makeInitrd: include dotfiles at root
This commit is contained in:
parent
85e0ae7827
commit
3a3c9c9548
@ -39,8 +39,8 @@ mkdir -p $out
|
|||||||
for PREP in $prepend; do
|
for PREP in $prepend; do
|
||||||
cat $PREP >> $out/initrd
|
cat $PREP >> $out/initrd
|
||||||
done
|
done
|
||||||
(cd root && find * -print0 | xargs -0r touch -h -d '@1')
|
(cd root && find * .[^.*] -exec touch -h -d '@1' '{}' +)
|
||||||
(cd root && find * -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null | $compressor >> $out/initrd)
|
(cd root && find * .[^.*] -print0 | sort -z | cpio -o -H newc -R +0:+0 --reproducible --null | $compressor >> $out/initrd)
|
||||||
|
|
||||||
if [ -n "$makeUInitrd" ]; then
|
if [ -n "$makeUInitrd" ]; then
|
||||||
mv $out/initrd $out/initrd.gz
|
mv $out/initrd $out/initrd.gz
|
||||||
|
Loading…
Reference in New Issue
Block a user