The customer notified an issue on WRL8 when booting on one of their devices.
The error seen is:
=======
Populating dev cache
tar: dev/disk/by-label/x2fVolume: Cannot stat: No such file or directory
tar: dev/disk/by-label/x2fother-root: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
udev-cache: update failed!
========
I tracked this down to:
/etc/rcS.d/S36udev-cache:
…
find /dev -xdev \( -type b -o -type c -o -type l \) | cut -c 2- \
| xargs tar cf "${DEVCACHE_TMP}"
The problem here is this doesn’t handle files with special characters or spaces in the name:
ls -la /dev/disk/by-label/
lrwxrwxrwx 1 root root 10 Nov 7 12:06 \x2fVolume -> ../../sda7
lrwxrwxrwx 1 root root 10 Nov 7 12:06 \x2fother-root -> ../../sda6
I was able to get around this by using sed to add quotes around the input to xargs:
find /dev -xdev \( -type b -o -type c -o -type l \) | cut -c 2- \
| sed 's/.*/"&"/' | xargs tar cf "${DEVCACHE_TMP}"
Is this a known issue?
He noticed this in both RCPL12 & RCPL 22
They are looking to get this issue solved on RCPL 22 , we discussed with them and seem they are looking to update their layer from rcpl 12 to rcpl 22