From 429f1d182c43d75bdc61964372baa45bc3cf30ca Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Thu, 20 Dec 2018 10:17:50 +0000 Subject: [PATCH] mipsel-mitx: add root and boot partitions to /etc/fstab --- features.in/mipsel-mitx/rootfs/image-scripts.d/40-fstab | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 features.in/mipsel-mitx/rootfs/image-scripts.d/40-fstab diff --git a/features.in/mipsel-mitx/rootfs/image-scripts.d/40-fstab b/features.in/mipsel-mitx/rootfs/image-scripts.d/40-fstab new file mode 100755 index 00000000..f47f3e89 --- /dev/null +++ b/features.in/mipsel-mitx/rootfs/image-scripts.d/40-fstab @@ -0,0 +1,7 @@ +#!/bin/sh -efu + +# remove rootfs entry +sed -i '/rootfs/d' /etc/fstab + +echo "/dev/sda6 / ext4 relatime 1 1" >> /etc/fstab +echo "/dev/sda1 /boot ext4 defaults 1 2" >> /etc/fstab