From a88a386ef471a8edf77692132ce0c3d997c7c9de Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 22 Apr 2025 21:27:34 -0400 Subject: [PATCH] Attempt to make images bootable no matter the source, micro sd, nvme, etc. --- pi4/build/build-stormux.sh | 4 ++-- pi4/files/boot/cmdline.txt | 1 + pi4/files/etc/fstab | 6 ++++++ 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 pi4/files/boot/cmdline.txt create mode 100644 pi4/files/etc/fstab diff --git a/pi4/build/build-stormux.sh b/pi4/build/build-stormux.sh index 80b8d6d..b88c2ef 100755 --- a/pi4/build/build-stormux.sh +++ b/pi4/build/build-stormux.sh @@ -136,8 +136,8 @@ url[64]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz" fallocate -l "$imageSize" "$imageName" loopdev="$(losetup --find --show "${imageName}")" parted --script "${loopdev}" mklabel msdos mkpart primary fat32 0% 200M mkpart primary ext4 200M 100% -mkfs.vfat -F32 "${loopdev}p1" -mkfs.ext4 -F "${loopdev}p2" +mkfs.vfat -F32 -n STORMUX_BOOT "${loopdev}p1" +mkfs.ext4 -F -L STORMUX_ROOT "${loopdev}p2" mount "${loopdev}p2" /mnt mkdir /mnt/boot mount "${loopdev}p1" /mnt/boot diff --git a/pi4/files/boot/cmdline.txt b/pi4/files/boot/cmdline.txt new file mode 100644 index 0000000..98caf07 --- /dev/null +++ b/pi4/files/boot/cmdline.txt @@ -0,0 +1 @@ +root=LABEL=STORMUX_ROOT rw rootwait console=serial0,115200 console=tty1 fsck.repair=yes diff --git a/pi4/files/etc/fstab b/pi4/files/etc/fstab new file mode 100644 index 0000000..e9f6740 --- /dev/null +++ b/pi4/files/etc/fstab @@ -0,0 +1,6 @@ +# Static information about the filesystems. +# See fstab(5) for details. + +# +LABEL=STORMUX_BOOT /boot vfat defaults 0 1 +LABEL=STORMUX_ROOT / ext4 defaults,noatime 0 1