chesty / overlayroot

mounts an overlay file system over root
GNU General Public License v2.0
166 stars 38 forks source link

Issues with Ubuntu for ARM #18

Open mbandala opened 1 year ago

mbandala commented 1 year ago

I tried this with the DE10-nano board running the provided LXDE Ubuntu 16.04 image (login needed to get it - https://download.terasic.com/downloads/cd-rom/de10-nano/linux_BSP/DE10_Nano_LXDE.zip).

I followed all the steps for Ubuntu ARM but nothing seems to happen after rebooting. /overlay/lower is not even created and of course all changes are NOT lost after rebooting again.

I can see the prompt changing though (with an 'RO' at the end). Executing 'rootwork' confirms that there is no overlay (it says there is no /overlay). How can I debug this issue? It seems like the scripts are not executing. I noticed that the Ubuntu Linux comes with not fstab file. The bootloader is in charge of mounting the / partition here. I created an fstab file for the command 'sudo update-initramfs -k $(uname -r) -u' to work. I also noticed that the fstab file is not modified at all. Is this supposed to happen? I am sure that I created the fstab file correctly. The is a fat partition that is now mounted fine by the fstab.

I have access to the bootloader code if anything could be changed to that to make overlayroot work. Any ideas?

chesty commented 1 year ago

I'm guessing it's something to do with initramfs.

what does the output of dmesg look like?

mbandala commented 1 year ago

Hi - I see no reference to initramfs at all. I have uploaded a file with the dmesg output.

https://drive.google.com/file/d/1D4Ybhgccxo7KyedhuKZfGXReEbt3jmKg/view?usp=sharing

chesty commented 1 year ago

as far as I know, there should be a message about initramfs.

potentially the first part of the dmesg output has been cut off. I expected the first line to be the linux kernel version

mbandala commented 1 year ago

The attached file was created by dmesg > file.txt. I have double checked this on the terminal, no initramfs or kernel message on first line. Any other way to debug this issue?