Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Protecting the Root Filesystem on Ubuntu with Overlayroot

Featured Replies

Hi All,

I'm using Ubuntu 16.04 as my OS system and i.MX6DL SabreSD as my cpu.

I build my linux kernel with Yocto Project.

 

Now I'm trying to protect the root filesystem with Overlayroot.

 

I installed the overlayroot by using apt-get as below.

 

sudo apt-get install overlayroot

According some research, its lead me to modify "/etc/overlayroot.conf"  to enable overlayroot.

So here I tried to add the line at the bottom.

overlayroot="tmpfs:swap=1,recurse=0"

Then I reboot the system.

After that I tried to check if there was any overlayroot mounted with command `mount` when get into system.

But there was nothing happened, root filesystem still mounted as RW.

 

Did I miss any steps?

 

Or is overlayroot have any relation with linux kernel driver?

  • Author
37 minutes ago, Igor said:


Yes, check logs for: [failure]: missing kernel module overlayfs

Thanks for reply.

 

I had check logs by running below command.

dmesg | grep -rIn "overlayfs" *

But can not find any failure that relate to overlayfs.

 

I doubt that it did not even execute overlayroot.conf.

 

Any Advice?

 

Thanks in Advanced!

1 hour ago, Tsung-Li Wang said:

 

Any Advice?


overlayroot is very picky and I could not make it work under Debian ... so it only works on Ubuntu. Xenial is tested, while I dont't recall testing it on Bionic. It's not just kernel but probably some libraries. I am not familiar with Yocto, so can't help you to fix it there but if you need this functionality and don't want to spent a lot of time fixing this, switch to Armbian Xenial version. It works there out of the box. Well, you will need to construct/copy a kernel/u-boot for your board ... so it's not very simple to decide the best route.

  • Author
On 6/8/2018 at 3:03 PM, Igor said:


overlayroot is very picky and I could not make it work under Debian ... so it only works on Ubuntu. Xenial is tested, while I dont't recall testing it on Bionic. It's not just kernel but probably some libraries. I am not familiar with Yocto, so can't help you to fix it there but if you need this functionality and don't want to spent a lot of time fixing this, switch to Armbian Xenial version. It works there out of the box. Well, you will need to construct/copy a kernel/u-boot for your board ... so it's not very simple to decide the best route.

I can not switch to Armvian Xenial version cause customer need Ubuntu and kernel build from Yocto.

What I know now is that there is some kernel driver configuration that I have to open.

After that it is all about Ubuntu 16.04 LTS.

 

And When I test overlayroot on my Ubuntu 16.04 which installed on Oracle VM VirtualBox, It success.

So I do the exactly same way on my armbased board but things not going quite well.

 

I think I have to do more research on this.

 

Any way thanks for your help.

  • Author
On 6/8/2018 at 3:03 PM, Igor said:


overlayroot is very picky and I could not make it work under Debian ... so it only works on Ubuntu. Xenial is tested, while I dont't recall testing it on Bionic. It's not just kernel but probably some libraries. I am not familiar with Yocto, so can't help you to fix it there but if you need this functionality and don't want to spent a lot of time fixing this, switch to Armbian Xenial version. It works there out of the box. Well, you will need to construct/copy a kernel/u-boot for your board ... so it's not very simple to decide the best route.

For a  quick ask, do you know which kernel driver configuration I have to open?

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.