mkimage-profiles/features.in/mipsel-mitx/rootfs/image-scripts.d/15-fstab
Anton Midyukov 439fe29841 build-vm, mipsel-{bfk3,mitx}: Execute fstab scripts before 17-kernel
This is necessary for the 'rootfs' initrd feature to work properly
2021-02-14 23:22:56 +07:00

8 lines
175 B
Bash
Executable File

#!/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