11

October
2012

Cleanup script updates

Since you are root in Slax, and since Slax uses AUFS (which is a masterpiece of union-mounting software), you can do all the nasty stuff like using losetup. The problem is (was) that if you did that (as I did), and forgot to detach the loop device before you rebooted Slax (as I did), the entire union couldn't be unmounted since it was busy. That's no problem if you're using Slax without persistent changes, but with it one needs the union to be unmounted cleanly in order to shutdown the underlying filesystem (fat,ntfs,etc) to unmount cleanly as well.

So I've updated cleanup script to look for all attached loop devices and to free them before attempting to unmount union. I am wondering why distributions do not have such check in their shutdown scripts, since you essentially can't unmount any filesystem if a loop device is attached on it. They're probably expecting the user to understand that if he manually uses losetup then he needs to free it before shutdown. I'll suggest this upstream, we will see the reaction :)

User comments
gui 2012-10-15 02:27

will hope they react accepting this ;)