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:
parent
5663efdf44
commit
d050e166cd
@ -339,6 +339,7 @@ apt-get clean
|
|||||||
EOF
|
EOF
|
||||||
chmod +x "$DEST/second-phase"
|
chmod +x "$DEST/second-phase"
|
||||||
do_chroot /second-phase
|
do_chroot /second-phase
|
||||||
|
mkdir -p $DEST/etc/network/interfaces.d/
|
||||||
cat > "$DEST/etc/network/interfaces.d/eth0" <<EOF
|
cat > "$DEST/etc/network/interfaces.d/eth0" <<EOF
|
||||||
auto eth0
|
auto eth0
|
||||||
iface eth0 inet dhcp
|
iface eth0 inet dhcp
|
||||||
@ -357,6 +358,7 @@ ff00::0 ip6-mcastprefix
|
|||||||
ff02::1 ip6-allnodes
|
ff02::1 ip6-allnodes
|
||||||
ff02::2 ip6-allrouters
|
ff02::2 ip6-allrouters
|
||||||
EOF
|
EOF
|
||||||
|
mkdir -p $DEST/etc/udev/hwdb.d/
|
||||||
cat > "$DEST/etc/udev/hwdb.d/teres_kmap.hwdb" <<EOF
|
cat > "$DEST/etc/udev/hwdb.d/teres_kmap.hwdb" <<EOF
|
||||||
evdev:input:b0003v15BAp003C*
|
evdev:input:b0003v15BAp003C*
|
||||||
KEYBOARD_KEY_7006f=brightnessdown
|
KEYBOARD_KEY_7006f=brightnessdown
|
||||||
|
Loading…
Reference in New Issue
Block a user