make_rootfs.sh: Ensure paths exists before cat

Ensure that all paths exists before executing cat. Otherwise
the rootfs was not properly generated and the image was not
booting.

Suggested-by: Lazar Hristov <lhristov@gmail.com>
Signed-off-by: Leon Anavi <leon@anavi.org>
This commit is contained in:
Leon Anavi 2019-03-04 14:22:20 +02:00
parent 5663efdf44
commit d050e166cd

@ -339,6 +339,7 @@ apt-get clean
EOF
chmod +x "$DEST/second-phase"
do_chroot /second-phase
mkdir -p $DEST/etc/network/interfaces.d/
cat > "$DEST/etc/network/interfaces.d/eth0" <<EOF
auto eth0
iface eth0 inet dhcp
@ -357,6 +358,7 @@ ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
EOF
mkdir -p $DEST/etc/udev/hwdb.d/
cat > "$DEST/etc/udev/hwdb.d/teres_kmap.hwdb" <<EOF
evdev:input:b0003v15BAp003C*
KEYBOARD_KEY_7006f=brightnessdown