Skip to content

Commit 32b02e9

Browse files
author
Jérôme Maurin
committed
Fixed location in yamls of sed in fstab & used uuid in Cubietruck Plus bullseye
1 parent d275c74 commit 32b02e9

4 files changed

+10
-23
lines changed

cubietruck-plus_bullseye_armhf_vmdb2-0.14.1.yaml

+4-8
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ steps:
3131
- non-free
3232
unless: rootfs_unpacked
3333

34-
- chroot: root
35-
shell: |
36-
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
37-
unless: rootfs_unpacked
38-
3934
- apt: install
4035
packages:
4136
- linux-image-armmp-lpae
@@ -55,16 +50,17 @@ steps:
5550
contents: |+
5651
CubietruckPlus
5752
58-
# - fstab: root
53+
- fstab: root
5954

6055
- create-file: /etc/flash-kernel/machine
6156
contents: |+
6257
Cubietech Cubietruck Plus
6358
6459
- chroot: root
6560
shell: |
66-
echo "/dev/mmcblk0p1 / ext4 noatime,nodiratime,errors=remount-ro 0 1" > /etc/fstab
67-
sed -i "s_quiet_root=/dev/mmcblk0p1 net.ifnames=0_g" /etc/default/flash-kernel
61+
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
62+
63+
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
6864
update-initramfs -u
6965
rm /etc/flash-kernel/machine
7066

cubietruck-plus_buster_armhf_vmdb2-0.14.1.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ steps:
3131
- non-free
3232
unless: rootfs_unpacked
3333

34-
- chroot: root
35-
shell: |
36-
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
37-
unless: rootfs_unpacked
38-
3934
- apt: install
4035
packages:
4136
- linux-image-armmp-lpae
@@ -63,6 +58,8 @@ steps:
6358
6459
- chroot: root
6560
shell: |
61+
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
62+
6663
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
6764
update-initramfs -u
6865
rm /etc/flash-kernel/machine

cubietruck_buster_armhf_vmdb2-0.14.1.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ steps:
3131
- non-free
3232
unless: rootfs_unpacked
3333

34-
- chroot: root
35-
shell: |
36-
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
37-
unless: rootfs_unpacked
38-
3934
- apt: install
4035
packages:
4136
- linux-image-armmp-lpae
@@ -63,6 +58,8 @@ steps:
6358
6459
- chroot: root
6560
shell: |
61+
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
62+
6663
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
6764
update-initramfs -u
6865
rm /etc/flash-kernel/machine

rock64_buster_arm64_vmdb2-0.14.1.yaml

+2-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ steps:
3131
- non-free
3232
unless: rootfs_unpacked
3333

34-
- chroot: root
35-
shell: |
36-
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
37-
unless: rootfs_unpacked
38-
3934
- apt: install
4035
packages:
4136
- linux-image-arm64
@@ -63,6 +58,8 @@ steps:
6358
6459
- chroot: root
6560
shell: |
61+
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
62+
6663
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
6764
update-initramfs -u
6865
rm /etc/flash-kernel/machine

0 commit comments

Comments
 (0)