Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498214 - OpenRC 12.4 lacks net.example
Summary: OpenRC 12.4 lacks net.example
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-15 23:20 UTC by Janusz
Modified: 2014-01-17 14:55 UTC (History)
0 users

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 Janusz 2014-01-15 23:20:10 UTC
Like in subject. It should be included like previously it was. 

Reproducible: Always

Steps to Reproduce:
1.Upgrade from 0.11.8 to 0.12.4
Comment 1 Thomas Deutschmann (RETIRED) gentoo-dev 2014-01-16 14:25:55 UTC
No. Haven't you read the ewarn messages "sys-apps/openrc" displayed when you upgraded?

  ewarn "You have emerged OpenRc without network support. This"
  ewarn "means you need to SET UP a network manager such as"
  ewarn " net-misc/netifrc, net-misc/dhcpcd, net-misc/wicd,"
  ewarn "net-misc/NetworkManager, or net-misc/badvpn."
  ewarn "Or, you have the option of emerging openrc with the newnet"
  ewarn "use flag and configuring /etc/conf.d/network and"
  ewarn "/etc/conf.d/staticroute if you only use static interfaces."

Because you are asking for net.example you probably want "net-misc/netifrc" (the network from OpenRC 11.x (exception: you are using newnet). With the current "net-misc/netifrc-0.1", see "/usr/share/doc/netifrc-0.1/net.example.bz2".
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2014-01-16 14:53:16 UTC
As already being pointed out, the net.example file was moved into net-misc/netifrc package.
Comment 3 Janusz 2014-01-16 16:50:55 UTC
OK, 

those multiple information are really f.c.ed :-)

What those four lines at the end of my net file really mean? can I reemerge openrc and still net file will exist? Can I really remove the comment? Why so insane idea of changing net file, I had to stop the puppet, reemerge openrc and ifnetrc to find the comment?


config_enp0s2="10.0.0.254/24 192.168.1.80/24"
routes_enp0s2="default via 192.168.1.1"

modules_wlp0s4f0u4="!wireless"
config_wlp0s4f0u4="10.0.1.254/24"
modules_wlp0s4f0u40="!wireless"
config_wlp0s4f0u40="10.0.2.254/24"

config_ppp0=( "ppp" )
link_ppp0="/dev/ttyACM0"
username_ppp0='orange'
password_ppp0='orange'
# no usepeerdns
pppd_ppp0=" maxfail 25 debug defaultroute  noipdefault ipcp-accept-remote ipcp-accept-local lcp-echo-interval 5 lcp-echo-failure 3 mtu 1500 mru 1500 novj nobsdcomp nodeflate novjccomp nopredictor1 nomagic persist lock 115200 modem crtscts"
chat_ppp0="
        'ABORT' 'BUSY'
        'ABORT' 'ERROR'
        'ABORT' 'NO ANSWER'
        'ABORT' 'NO CARRIER'
        'ABORT' 'NO DIALTONE'
        'REPORT' 'CONNECT'
        '' 'AT+CGDCONT=1'
        'OK' 'AT&F'
        'OK' 'ATE1'
        'OK' 'AT+CPIN?'
        'OK' 'AT+COPS?'
        'OK' 'AT+CSQ'
        'OK' 'AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\"'
        'OK' 'ATDT*99#'
        'CONNECT' 'c'
"

# The network scripts are now part of net-misc/netifrc
# In order to avoid sys-apps/openrc-0.12.4 from removing this file, this comment was
# added; you can safely remove this comment.  Please see
# /usr/share/doc/netifrc*/README* for more information.
Comment 4 Janusz 2014-01-16 16:52:12 UTC
OK, 

those multiple information are really f.c.ed :-)

What those four lines at the end of my net file really mean? can I reemerge openrc and still net file will exist? Can I really remove the comment? Why so insane idea of changing net file, I had to stop the puppet, reemerge openrc and ifnetrc to find the comment?


config_enp0s2="10.0.0.254/24 192.168.1.80/24"
routes_enp0s2="default via 192.168.1.1"

modules_wlp0s4f0u4="!wireless"
config_wlp0s4f0u4="10.0.1.254/24"
modules_wlp0s4f0u40="!wireless"
config_wlp0s4f0u40="10.0.2.254/24"

config_ppp0=( "ppp" )
link_ppp0="/dev/ttyACM0"
username_ppp0='orange'
password_ppp0='orange'
# no usepeerdns
pppd_ppp0=" maxfail 25 debug defaultroute  noipdefault ipcp-accept-remote ipcp-accept-local lcp-echo-interval 5 lcp-echo-failure 3 mtu 1500 mru 1500 novj nobsdcomp nodeflate novjccomp nopredictor1 nomagic persist lock 115200 modem crtscts"
chat_ppp0="
        'ABORT' 'BUSY'
        'ABORT' 'ERROR'
        'ABORT' 'NO ANSWER'
        'ABORT' 'NO CARRIER'
        'ABORT' 'NO DIALTONE'
        'REPORT' 'CONNECT'
        '' 'AT+CGDCONT=1'
        'OK' 'AT&F'
        'OK' 'ATE1'
        'OK' 'AT+CPIN?'
        'OK' 'AT+COPS?'
        'OK' 'AT+CSQ'
        'OK' 'AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\"'
        'OK' 'ATDT*99#'
        'CONNECT' 'c'
"

# The network scripts are now part of net-misc/netifrc
# In order to avoid sys-apps/openrc-0.12.4 from removing this file, this comment was
# added; you can safely remove this comment.  Please see
# /usr/share/doc/netifrc*/README* for more information.
Comment 5 Thomas Deutschmann (RETIRED) gentoo-dev 2014-01-17 14:22:32 UTC
You should read more about logging in portage: http://wiki.gentoo.org/wiki/Portage_log

Again, this information was displayed within the emerge process. This is a common way to inform the user.

If you use a configuration management tool like puppet it shouldn't be a problem for you to test everything on a test client where you read the elog (maybe you don't know app-portage/elogv).

You could also configure the logging to mail you everything you are interested in.

If you find redundant information (e.g. on every update you get the same message which was only useful when upgrading from x to y and now don't apply anymore, please feel free to fill a bug and make it blocking bug 440214.

BTW: The comment was added to fix bug 481336. As the comment said, you can remove it.

When /etc/conf.d/net was modified by the user, it shouldn't be removed by emerge.
But now you should be warned and make a copy... just in case :)
Comment 6 Janusz 2014-01-17 14:55:28 UTC
Ok, now I see the reason (bug 481336). Copy is safe, but what a copy is worth when there is no net to laid the copy on disk, you know... EOT.