[packages/linux-pstore] - initial

glen glen at pld-linux.org
Thu Feb 21 16:38:04 CET 2019


On 2/21/19 3:03 PM, arekm wrote:

> +%post
> +if [ -d /sys/fs/pstore ]; then
> +	grep -qE "^none.*/sys/fs/pstore" %{_sysconfdir}/fstab || (echo -e "none\t\t/sys/fs/pstore\tpstore\tdefaults\t 0 0" >> %{_sysconfdir}/fstab && grep -q "/sys/fs/pstore" /proc/self/mounts || mount /sys/fs/pstore)
> +	exit 0
> +fi
> +


yuks.


i think this should go to "setup" package like rest of the fstab mounts


and mounting from %post does not seem good either.


so i propose:

1. add to setup the mount with noauto

2. update rc-scripts to mount it


this is the way afaik other fs are done.


-- 
glen



More information about the pld-devel-en mailing list