Re: [PATCH] mount-boot.eclass: do not create /boot/.keep in pkg_prerm
Ulrich Müller <[email protected]> Thu, 18 Jun 2026 07:30:01 +0200
| Newsgroups | gmane.linux.gentoo.devel |
|---|---|
| Message-ID | <[email protected]> |
>>>>> On Wed, 17 Jun 2026, Mike Gilbert wrote:
> systemd-gpt-auto-generator ignores mount points which are not empty
> directories. Let's avoid creating a .keep file under /boot every time a
> package using this eclass gets unmerged.
> [...]
> + if [[ -n ${BOOT_EXISTS} && ! -d ${EROOT}/boot ]]; then
> + # Recreate /boot in case it got un-merged
> + mkdir "${EROOT}"/boot
> fi
That looks like a horrible hack. Can't systemd-gpt-auto-generator be
fixed instead, to ignore .keep* or .*? Also, there's nothing wrong with
a mount point containing files (/dev is a common example).
Ulrich
signature.asc
(application/pgp-signature, 544 B)
-----BEGIN PGP SIGNATURE----- iQFfBAEBCABJFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmozglkbFIAAAAAABAAO bWFudTIsMi41KzEuMTIsMiwyDxx1bG1AZ2VudG9vLm9yZwAKCRBRiDNQiEFeLujU B/936D3tqdniA9WwJH8g/UqU+LBCBhFYaYIDnBsFWuzx/zxtkk4lNq6/6stMZBs1 55Karumh/a/2JJyj7rcFC2vZBDmucTdlmPhoIwhudsO5l+jvo97S0lt/WMJkKRk2 XyFPfV680JvpQdjRnl5w6N/po8zvemhSc0lrZYgjE33qvrNKN+XE6Z9LjD6M5AsJ AhP1dH0xx1NsjbnREE0M6sSUjaYFxdX/VC+UoCiGUcCZ0eUrsnRqYJ12Kc3Sodh2 tsLIyXrWK7KlqP/WnAzIreGhBBG4waefDWLaZ85Y1wuZTCsi7SdvSsgqxln7y5K8 S5PY6wm55f9SrKo7OIVq5QQJ =gnEV -----END PGP SIGNATURE-----