site  contact  subhomenews

Checks when SFS layers change

September 20, 2017 — BarryK

Puppy Linux does a lot of checking when the SFS layers change, in the init script in the initramfs and after switch_root in /etc/rc.d/rc.update. Easy 0.4 and earlier does no checks, just uses the layers as-is.

The code in Puppy is complex, and I do want some checks in Easy, but simpler. I have created /sbin/fixlayers in the initramfs, that gets called if a change in SFS layers is detected, or a version upgrade. Have tried to keep this code to just the essentials, such as ensuring the Easy boot scripts in /etc/rc.d are visible at the top of the layers.

After switch_root, I have put some checks into /etc/rc.d/rc.sysinit. For example, rerunning depmod and rebuilding the JWM menu.

Puppy does a lot of checking of the JWM PuppyPin and globicons files, however, I have left that out. It will be up to any SFS files inserted in a layer, not to mess up those files. Though, that one might need more thought.

EDIT
Script /sbin/fixlayers now merges PuppyPin and globicons from the SFS layers, producing a sane desktop that keeps user customization.

Tags: easy