Use a pre-built /dev/console initrd image.

This fixes issue #111 which led to problems if /dev/console on
a container had a virtualized device that didn't match the
device major/minor that the Heads kernel was expecting.
This commit is contained in:
Trammell Hudson 2017-02-28 15:18:57 -05:00
parent 453317921a
commit 0843d30097
Failed to extract signature
2 changed files with 2 additions and 6 deletions

View File

@ -239,13 +239,9 @@ initrd_lib_install: $(initrd_bins) $(initrd_libs)
#
initrd.cpio: $(initrd_bins) $(initrd_libs) initrd_lib_install
cd ./initrd ; \
( \
echo "/dev" ; \
echo "/dev/console"; \
find . \
) \
| cpio --quiet -H newc -o \
| ../cpio-clean \
| ../cpio-clean ../dev.cpio - \
> "../$@.tmp"
if ! cmp --quiet "$@" "$@.tmp"; then \
mv "$@.tmp" "$@"; \

BIN
dev.cpio Normal file

Binary file not shown.