Hello.
I am trying to port vyos software router in LS1028ARDB.
I've compiled custom linux kernel and need to modify init script to mount overlayed filesystem. How can I edit initscript with flexbuilder (or other tools)? Maybe someone have experience in porting vyos on NXP boards?
Any help appreciated.
Thank you.
What initscript do you want to customize?
You could refer to the following procedure to generate ubuntu main rootfs.
$ flex-builder -i mkrfs
$ flex-builder -c apps
$ flex-builder -i merge-component
Modify init scripts in build/rfs/rootfs_lsdk2012_ubuntu_main_arm64
$ flex-builder -i packrfs
Hello.
Thank you for answer.
I need a way to make some filesystem actions before actualy mounting root. I need to make some overlays and mount it as root.
Something like this:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 32G 4.8G 26G 16% /usr/lib/live/mount/persistence
/dev/loop0 409M 409M 0 100% /usr/lib/live/mount/rootfs/1.4202108300430.squashfs
tmpfs 998M 0 998M 0% /usr/lib/live/mount/overlay
overlay 32G 4.8G 26G 16% /
Normaly linux boot process includes loading initrd image as starting point and launch init script making necessary preparation.
How can I acheave this?
You could edit /etc/fstab in rootfs filesystem to add the following.
/dev/sda1 /usr/lib/live/mount/persistence ext4 defaults 0 0