Fix for multiple sfs layers in main desktop
July 30, 2026 —
BarryK
The previous two posts described the problem:
- SFS loading order error — July 30, 2026
- Partial fix for devx sfs loaded on main desktop — July 30, 2026
Nailing it down more, have inserted this into /sbin/fixlayers in the initrd:
#20260730 sync apt layers. see /usr/local/petget/update_dbs.sh, alias/apt, alias/apt-get
if [ -z "$prevVER" ];then #prevVER set if a version update.
#sfs layers change.
mkdir -p /mnt/${WKG_DEV}/${WKG_DIR}.session/session1/var/local/petget
echo -n '0.0.0' > /mnt/${WKG_DEV}/${WKG_DIR}.session/session1/var/local/petget/dpkg-sync-layers-ver
fi
There is code in /usr/local/petget/update_dbs.sh, alias/apt and alias/apt-get, that runs 'sync-dpkg-layers':
#20250821 sync dpkg db layers...
#20260730 see initrd /sbin/fixlayers #20260730
#also run from /usr/local/petget/update_dbs.sh and alias/apt
mkdir -p /var/local/petget
if [ ! -e /var/local/petget/dpkg-sync-layers-ver ];then
echo -n "${DISTRO_VERSION}" > /var/local/petget/dpkg-sync-layers-ver
else
V1="$(cat /var/local/petget/dpkg-sync-layers-ver)"
if [ "${V1}" != "${DISTRO_VERSION}" ];then
echo -n "${DISTRO_VERSION}" > /var/local/petget/dpkg-sync-layers-ver
/usr/local/petget/alias/sync-dpkg-layers
fi
fi
Looks like loading devx sfs on the main desktop is now fixed, but
will have to build the next version of EasyOS to
verify.
Tags: easy