Skip to content

Commit

Permalink
mxgrub: exclude .git from ramdisk
Browse files Browse the repository at this point in the history
mxgrub --initramfs builds /boot/grub/initramfs.igz from
/project/admin/initramf. Exclude ".git*", so we can put
the directory under revision control.
  • Loading branch information
donald committed Aug 20, 2019
1 parent d6da335 commit 5ac06aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mxgrub/mxgrub
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ sub cmd_update {
}

sub cmd_initramfs {
sys('bash','-c','cd /project/admin/initramfs;find .|cpio -H newc -o | gzip > /boot/grub/initramfs.igz');
sys('bash','-c','cd /project/admin/initramfs ; find . -name ".git*" -prune -or -print | cpio -H newc -o | gzip > /boot/grub/initramfs.igz');
}

sub cmd_reboot {
Expand Down

0 comments on commit 5ac06aa

Please sign in to comment.