public inbox for linux-unionfs@vger.kernel.org
 help / color / mirror / Atom feed
* Frequent errors with OverlayFS on root
@ 2020-09-01 17:46 Mauro Condarelli
  2020-09-01 18:43 ` Amir Goldstein
  0 siblings, 1 reply; 15+ messages in thread
From: Mauro Condarelli @ 2020-09-01 17:46 UTC (permalink / raw)
  To: linux-unionfs

Hi,
most likely this is not the right place to ask, please redirect me as needed.

I'm trying to use OverlayFS to add (limited) write capability to a ReadOnly
rootfs (SquashFS)

Essentially (actual script is more complex, of course) boot-sequence includes:

# /dev/mmcblk0p5: ext4 (upper+work+nwwroot+newroot/oldroot)
# /dev/mmcblk0p6: SquashFS mounted on /
mount /dev/mmcblk0p5 /overlay
mount -t overlay overlay -o lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work  /overlay/newroot
cd /overlay/newroot
pivot_root . oldroot
mount --move oldroot/dev /dev
mount --move oldroot/proc /proc

This works as expected, but, too often for comfort, some file
(and sometime also directories) become unavailable due to error:

overlayfs: invalid origin (ssh/sshd_config, ftype=8000, origin ftype=4000).

File name changes, of course, but rest is fairly constant.

This always happens when some file is written.
Error persists reboots.
Only way I found to "cure" the system is to go on "upper" and delete the file
thus going back to "lower" version (in this case I should delete "/oldroot/overlay/upper/etc/ssh/sshd_config")

This is a self-built kernel (Linux vocore 5.7.0 #2 PREEMPT Mon Aug 3 09:19:06 CEST 2020 mips GNU/Linux)
on a custom target based on a SoC (MT7628).

I am available to do any required test, but I have no idea about where to start.

Any hint (or redirect) would be greatly appreciated.

Many Thanks in Advance
Mauro



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-09-03 14:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-01 17:46 Frequent errors with OverlayFS on root Mauro Condarelli
2020-09-01 18:43 ` Amir Goldstein
     [not found]   ` <2da4dd97-d7cb-ce1b-ada7-0152d65ce701@mclink.it>
2020-09-02  3:34     ` Amir Goldstein
2020-09-02 13:29       ` Vivek Goyal
2020-09-02 15:31         ` Amir Goldstein
2020-09-02 15:33         ` Mauro Condarelli
2020-09-02 20:20           ` Vivek Goyal
2020-09-03  7:25             ` Mauro Condarelli
2020-09-03  8:30               ` Amir Goldstein
2020-09-03  8:51                 ` Mauro Condarelli
2020-09-03  9:00                   ` Amir Goldstein
2020-09-03  9:01                     ` Amir Goldstein
2020-09-03  9:24                     ` Mauro Condarelli
2020-09-03  9:53                       ` Miklos Szeredi
2020-09-03 13:09                         ` Vivek Goyal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox