From 5004ec3efa4e28eeca78346ea46056ae9d3c1fc4 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Wed, 2 Aug 2023 19:03:40 +0200 Subject: [PATCH] add system update tools --- recipes-diya/initramfs/files/diya-update | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/recipes-diya/initramfs/files/diya-update b/recipes-diya/initramfs/files/diya-update index 2e77fd2..568990b 100755 --- a/recipes-diya/initramfs/files/diya-update +++ b/recipes-diya/initramfs/files/diya-update @@ -51,6 +51,14 @@ rootfs() dd if=$backup_file of=$ROOTFS_DEV return 1 fi + echo "Patch /etc/fstab" + cat << EOF >> $TMP_MOUNT/etc/fstab + +/dev/mmcblk0p1 /boot vfat defaults 0 0 +/dev/mmcblk0p3 /var/etc ext4 defaults 0 0 +/dev/mmcblk0p4 /home ext4 defaults 0 0 + +EOF sync echo "Unmount the rootfs partition" umount $TMP_MOUNT