#18795: pivot_root / pivot_overlay not working on chaos calmer r44053
-------------------------------------------------+-------------------------
 Reporter:  walter.huettenmeyer@…                |      Owner:  developers
     Type:  defect                               |     Status:  new
 Priority:  normal                               |  Milestone:  Chaos
Component:  packages                             |  Calmer (trunk)
 Keywords:  ar71xx, WRT160NL, chaos calmer,      |    Version:  Trunk
  pivot_root, pivot_overlay, extroot, solved     |
-------------------------------------------------+-------------------------
 '''After updating to r44053 on my WRT160NL mounting /dev/sda1 as /overlay
 stopped working.'''

 /dev/mtdblock3 was mounted on /overlay and not unmounted before it tried
 to mount my sda1 there, so it would not mount there.

 Adding a mount point manually in fstab or via LuCI
 ''(git-15.019.63550-0d541a4)'' for /dev/mtdblock3 to solved the issue.

 If you run into the same issue, please take following example:

 {{{
 root@router:~# cat /etc/config/fstab

 config global
         option anon_swap '0'
         option anon_mount '0'
         option auto_swap '1'
         option auto_mount '1'
         option delay_root '15'
         option check_fs '1'

 config mount
         option target '/mnt/mtdblock3'
         option device '/dev/mtdblock3'
         option fstype 'jffs2'
         option options 'rw,sync'
         option enabled '1'
         option check_fs '0'

 config mount
         option device '/dev/sda1'
         option target '/overlay'
         option fstype 'ext4'
         option options 'rw,sync'
         option enabled '1'
         option is_rootfs '1'

 config mount
         option device '/dev/sda2'
         option target '/mnt/daten'
         option fstype 'ext4'
         option enabled '1'

 config swap
         option enabled '1'
         option device '/dev/sda3'
 }}}

 After a reboot it worked, and after many more it still is.
 '''I'm not sure if the delay_root setting is necessary,'''
 but with this setting it works and setting it to 15 didn't have any
 negative impact.

 If I check the available space, I can see it is working, LuCI also reports
 the correct size and free space.

 {{{
 root@router:~# df -h
 Filesystem                Size      Used Available Use% Mounted on
 rootfs                  238.1M     11.1M    223.0M   5% /
 /dev/root                 2.0M      2.0M         0 100% /rom
 tmpfs                    14.0M   1012.0K     13.0M   7% /tmp
 /dev/sda1               238.1M     11.1M    223.0M   5% /overlay
 overlayfs:/overlay      238.1M     11.1M    223.0M   5% /
 tmpfs                   512.0K         0    512.0K   0% /dev
 /dev/sda2               914.6G     74.7M    914.5G   0% /mnt/daten
 /dev/mtdblock3            4.6M      2.3M      2.4M  49% /mnt/mtdblock3
 }}}

 ''For me, this bug could be set to <solved> if it may help others.''

--
Ticket URL: <https://dev.openwrt.org/ticket/18795>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets

Reply via email to