Skip to content

Commit

Permalink
Fixed location in yamls of sed in fstab & used uuid in Cubietruck Plu…
Browse files Browse the repository at this point in the history
…s bullseye
  • Loading branch information
Jérôme Maurin committed Apr 26, 2020
1 parent d275c74 commit 32b02e9
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 23 deletions.
12 changes: 4 additions & 8 deletions cubietruck-plus_bullseye_armhf_vmdb2-0.14.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ steps:
- non-free
unless: rootfs_unpacked

- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
unless: rootfs_unpacked

- apt: install
packages:
- linux-image-armmp-lpae
Expand All @@ -55,16 +50,17 @@ steps:
contents: |+
CubietruckPlus
# - fstab: root
- fstab: root

- create-file: /etc/flash-kernel/machine
contents: |+
Cubietech Cubietruck Plus
- chroot: root
shell: |
echo "/dev/mmcblk0p1 / ext4 noatime,nodiratime,errors=remount-ro 0 1" > /etc/fstab
sed -i "s_quiet_root=/dev/mmcblk0p1 net.ifnames=0_g" /etc/default/flash-kernel
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
update-initramfs -u
rm /etc/flash-kernel/machine
Expand Down
7 changes: 2 additions & 5 deletions cubietruck-plus_buster_armhf_vmdb2-0.14.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ steps:
- non-free
unless: rootfs_unpacked

- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
unless: rootfs_unpacked

- apt: install
packages:
- linux-image-armmp-lpae
Expand Down Expand Up @@ -63,6 +58,8 @@ steps:
- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
update-initramfs -u
rm /etc/flash-kernel/machine
Expand Down
7 changes: 2 additions & 5 deletions cubietruck_buster_armhf_vmdb2-0.14.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ steps:
- non-free
unless: rootfs_unpacked

- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
unless: rootfs_unpacked

- apt: install
packages:
- linux-image-armmp-lpae
Expand Down Expand Up @@ -63,6 +58,8 @@ steps:
- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
update-initramfs -u
rm /etc/flash-kernel/machine
Expand Down
7 changes: 2 additions & 5 deletions rock64_buster_arm64_vmdb2-0.14.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ steps:
- non-free
unless: rootfs_unpacked

- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
unless: rootfs_unpacked

- apt: install
packages:
- linux-image-arm64
Expand Down Expand Up @@ -63,6 +58,8 @@ steps:
- chroot: root
shell: |
sed -i s_errors=remount-ro_noatime,nodiratime,errors=remount-ro_g /etc/fstab
sed -i "s_quiet_root=$(grep ^UUID /etc/fstab | cut -d \ -f 1) net.ifnames=0_g" /etc/default/flash-kernel
update-initramfs -u
rm /etc/flash-kernel/machine
Expand Down

0 comments on commit 32b02e9

Please sign in to comment.