summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Zeman <contact@thomas-zeman.com>2022-11-11 12:25:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-11 12:25:47 +0000
commit962ba4f72986a70446b270c0b3597f82bf3e4e40 (patch)
treeaf2ed009cc191c0907845e79afeb0c23f89109f2
parentfa207d00efb451d9ed20820735608a1e625155ef (diff)
downloadalpine-conf-962ba4f72986a70446b270c0b3597f82bf3e4e40.zip
Make dir $mnt/boot before writing files to it
-rw-r--r--setup-disk.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index a586a23..399123a 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -462,6 +462,7 @@ rpi_gen_config() {
# setup rpi bootloader
setup_raspberrypi_bootloader() {
local mnt="$1" root="$2" modules="$3" kernel_opts="$4"
+ mkdir -p "$mnt"/boot
rpi_gen_config > "$mnt"/boot/config.txt
echo "root=$root modules=$modules $kernel_opts" > "$mnt"/boot/cmdline.txt
}