nrelease: Solve the initial initrd creation better.
authorSascha Wildner <saw@online.de>
Tue, 3 Mar 2015 20:19:09 +0000 (21:19 +0100)
committerSascha Wildner <saw@online.de>
Tue, 3 Mar 2015 20:19:09 +0000 (21:19 +0100)
commit80357c7e4165aabb38f6f59acda9adc94b47554a
treee3b58aec56c6e18fc03900a5948e6d65955182b4
parentf5d9083e6d582c2520d42e6ae5267d5a9fb1bc89
nrelease: Solve the initial initrd creation better.

Hard links in cd9660, while not taking up more space in the ISO or on
the CD, all have distinct inode numbers, which causes them to be treated
like individual files when copying them somewhere. This caused the initrd
to overflow when we built it from the installer after booting from the
ISO.

This commit puts initrd creation into the nrelease process instead, making
use of mkinitrd(8)'s -c option which allows us to override the contents
directory to the ${ISOROOT}'s /usr/share/initrd.

Reported-by: opvalues
Dragonfly-bug: <https://bugs.dragonflybsd.org/issues/2798>
nrelease/Makefile