nrelease: Solve the initial initrd creation better.
commit63c6d0e33670a8ddbb02aa02430319ab85809709
authorSascha Wildner <saw@online.de>
Tue, 3 Mar 2015 20:19:09 +0000 (3 21:19 +0100)
committerSascha Wildner <saw@online.de>
Tue, 3 Mar 2015 20:58:24 +0000 (3 21:58 +0100)
tree925e1a04c24673a0be4b22b8154caba3a203ddc9
parent5d5f88f8e95869c110a6f11a393153cf810133b7
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