Attempt to make images bootable no matter the source, micro sd, nvme, etc.
This commit is contained in:
parent
034c561a53
commit
a88a386ef4
@ -136,8 +136,8 @@ url[64]="http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-aarch64-latest.tar.gz"
|
|||||||
fallocate -l "$imageSize" "$imageName"
|
fallocate -l "$imageSize" "$imageName"
|
||||||
loopdev="$(losetup --find --show "${imageName}")"
|
loopdev="$(losetup --find --show "${imageName}")"
|
||||||
parted --script "${loopdev}" mklabel msdos mkpart primary fat32 0% 200M mkpart primary ext4 200M 100%
|
parted --script "${loopdev}" mklabel msdos mkpart primary fat32 0% 200M mkpart primary ext4 200M 100%
|
||||||
mkfs.vfat -F32 "${loopdev}p1"
|
mkfs.vfat -F32 -n STORMUX_BOOT "${loopdev}p1"
|
||||||
mkfs.ext4 -F "${loopdev}p2"
|
mkfs.ext4 -F -L STORMUX_ROOT "${loopdev}p2"
|
||||||
mount "${loopdev}p2" /mnt
|
mount "${loopdev}p2" /mnt
|
||||||
mkdir /mnt/boot
|
mkdir /mnt/boot
|
||||||
mount "${loopdev}p1" /mnt/boot
|
mount "${loopdev}p1" /mnt/boot
|
||||||
|
1
pi4/files/boot/cmdline.txt
Normal file
1
pi4/files/boot/cmdline.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
root=LABEL=STORMUX_ROOT rw rootwait console=serial0,115200 console=tty1 fsck.repair=yes
|
6
pi4/files/etc/fstab
Normal file
6
pi4/files/etc/fstab
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
# Static information about the filesystems.
|
||||||
|
# See fstab(5) for details.
|
||||||
|
|
||||||
|
# <file system> <dir> <type> <options> <dump> <pass>
|
||||||
|
LABEL=STORMUX_BOOT /boot vfat defaults 0 1
|
||||||
|
LABEL=STORMUX_ROOT / ext4 defaults,noatime 0 1
|
Loading…
x
Reference in New Issue
Block a user