[arch-releng] [DRAFT] [archiso] Add archiso_shutdown hook.

Thomas Bächler thomas at archlinux.org
Fri Aug 26 05:10:46 EDT 2011


Am 26.08.2011 10:48, schrieb Gerardo Exequiel Pozzi:
> You need to look for block fs at /proc/filesystem and for each one, look
> at /sys/module/$fs/refcnt if it is 0 (zero).
> 
> for _fs in $(awk '$1 !~ /^nodev/ { print $1}' /proc/filesystems); do
>     echo ${_fs} $(cat /sys/module/${_fs}/refcnt)
> done
> 
> ----
> INIT: version 2.88 reloading
> udf 0
> xfs 0
> squashfs 0
> ext4 0
> [  188.509060] sd 0:0:0:0: [sda] Stopping disk
> [  188.510270] ACPI: Preparing to enter system sleep state S5
> [  188.511209] Disabling non-boot CPUs ...
> [  188.511842] Power down.
> [  188.513144] acpi_power_off called
> ----

Hm, I did not see that, or misinterpreted it. Looks good, but ...

> If you ask me how to do this is filesystem are built-in in kernel, I do
> not know.

Yes, it only works for modules. If we had refcounts for the block
devices themselves, that would be great.

In our kernel, we do not have built-in file systems, but it is still not
a generic solution.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-releng/attachments/20110826/e3f11436/attachment.asc>


More information about the arch-releng mailing list