[OpenWrt-Devel] UBIFS issues within kernel 4.14.69?

Koen Vandeputte koen.vandeputte at ncentric.com
Tue Sep 11 09:46:03 EDT 2018

Hi Richard,

I'm currently in the process of updating the kernel version within 
OpenWrt. (4.14.68 to 4.14.69)

Testing shows some issues on devices using specifically UBIFS.
Altering a perfect valid writable file shows weird errors:

[ Node 2 | node-2 ] ls -l /root/custom/scripts/banner.sh
-rwxr-xr-x    1 root     root           283 Sep 11 09:52 

[ Node 2 | node-2 ] cat /root/custom/scripts/banner.sh

if [ ! -f /root/.banner_ok ]
     RELEASE=$(cat /root/build_date)
     VERSION=$(cat /root/version)

     echo "Generating banner: $VERSION $RELEASE"
     sed s/VERSION/$VERSION/g /root/custom/banner > /etc/banner
     sed -i s/RELEASE/$RELEASE/g /etc/banner

     touch /root/.banner_ok

[ Node 2 | node-2 ] echo "test" > /root/custom/scripts/banner.sh
-ash: can't create /root/custom/scripts/banner.sh: nonexistent directory

I'm also noticing other apps fail because /etc doesn't exists yet after 
UBIFS boot loading.
these 2 issues were not seen on 4.14.68.

The bootlog doesn't show any error:

I'm only seeing these issues on UBIFS enabled volumes.

It seems it's related to one of your 5 commits, but I'm still in the 
process of bisecting to find the actual culprit.
As soon as I've found it, I'll let you know, but maybe you already have 
an idea here?



openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list