Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705308 - net-firewall/nftables-0.9.3-r1 - pkg_postinst tells user to run non-existent systemd_enable_service
Summary: net-firewall/nftables-0.9.3-r1 - pkg_postinst tells user to run non-existent ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-12 19:46 UTC by Chris Mayo
Modified: 2020-04-07 06:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mayo 2020-01-12 19:46:06 UTC
elog "If you wish to enable the firewall rules on boot (on systemd) you"
elog "will need to enable the nftables-restore service."
elog "    'systemd_enable_service basic.target ${PN}-restore.service'"
elog
elog "If you are creating firewall rules before the next system restart "
elog "the nftables-restore service must be manually started in order to "
elog "save those rules on shutdown."


systemd_enable_service is the eclass function.

Expect to see:
systemctl enable nftables-restore.service

As noted here:
https://wiki.gentoo.org/wiki/Nftables#systemd

it is critical before starting the service to also do:
touch /var/lib/nftables/rules-save
Comment 1 Chris Mayo 2020-01-12 19:55:38 UTC
> 
> it is critical before starting the service to also do:
> touch /var/lib/nftables/rules-save

I see pkg_postinst is creating that file.
Comment 2 Larry the Git Cow gentoo-dev 2020-04-07 06:56:40 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f103299fc4d3445f5e0f47b2aa4e43316500dfa3

commit f103299fc4d3445f5e0f47b2aa4e43316500dfa3
Author:     Patrick McLean <chutzpah@gentoo.org>
AuthorDate: 2020-04-07 06:56:06 +0000
Commit:     Patrick McLean <chutzpah@gentoo.org>
CommitDate: 2020-04-07 06:56:06 +0000

    net-firewall/nftables-0.9.4-r1: revbump, call python_optimize, fix deps
    
    Call python_optimize to fix QA warning about unoptimized python code.
    
    The docbook2X dep is only needed for building man pages, so put it under
    the doc USE flag.
    
    Fix the pkg_postinst message about systemd (bug #705308)
    
    Closes: https://bugs.gentoo.org/705308
    Package-Manager: Portage-2.3.96, Repoman-2.3.22
    Signed-off-by: Patrick McLean <chutzpah@gentoo.org>

 .../nftables/{nftables-0.9.4.ebuild => nftables-0.9.4-r1.ebuild} | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)