Changeset 26208


Ignore:
Timestamp:
2011-03-17T20:09:43+01:00 (7 years ago)
Author:
nbd
Message:

base-files: overlayfs whiteouts depend on a specific xattr entry, which does not get preserved by the tmpfs->overlay copy. work around this by cleaning all copied "(overlay-whiteout)" symlinks after the switch to jffs2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/firstboot/99_10_with_fo_cleanup

    r19944 r26208  
    88    # this will almost always fail 
    99    umount /tmp/root 2>&- 
     10        grep -q overlay /proc/filesystems && { 
     11                cd / 
     12                ( 
     13                        cd /overlay 
     14                        find -type l 
     15                ) | while read FILE; do 
     16                        [ -z "$FILE" ] && break 
     17                        if ls -la "$FILE" 2>&- | grep -q '(overlay-whiteout)'; then 
     18                                rm -f "$FILE" 
     19                        fi 
     20                done 
     21        } 
    1022    exit 0 
    1123} 
Note: See TracChangeset for help on using the changeset viewer.