[arch-general] netcl leaves network down until reenable performed - do we need note?

David C. Rankin drankinatty at suddenlinkmail.com
Fri Aug 21 06:07:41 UTC 2020


On 8/21/20 12:25 AM, Eli Schwartz via arch-general wrote:
>> That might have been an interesting precautionary measure for netctl
>> 1.18, at least for printing a message advising people to reenable the
>> service.
> Oh, for the record -- it looks like netctl already did this:
> 
> https://git.archlinux.org/svntogit/packages.git/tree/trunk/netctl.install?h=packages/netctl
> 
> post_upgrade() {
>     if [[ $(vercmp 1.18 "$2") -gt 0 ]]; then
>         grep -ls '^.include ' /etc/systemd/system/netctl@*.service | \
>           while read -r unit; do
>             profile=$(systemd-escape --unescape "${unit:27:-8}")
>             echo ":: The unit for profile '$profile' uses deprecated
> features."
>             echo "   Consider running: netctl reenable $(printf '%q'
> "$profile")"
>         done
>     fi
> }

The fallibility of human infallibility...

  You can lead a horse to water, but you can't make 'em drink :)

Thank you Eli, at least we know now the distribution was 1-step ahead.


-- 
David C. Rankin, J.D.,P.E.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20200821/a6653e5e/attachment.sig>


More information about the arch-general mailing list