Bug 733148 - /sbin/ifup: line 20: /etc/init.d/functions: No such file or directory
Summary: /sbin/ifup: line 20: /etc/init.d/functions: No such file or directory
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: lorax
Version: 16
Hardware: ppc64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Will Woods
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F16Alphappc
TreeView+ depends on / blocked
 
Reported: 2011-08-24 21:57 UTC by Mark Hamzy
Modified: 2012-03-14 13:06 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-09-22 15:54:55 UTC


Attachments (Terms of Use)

Description Mark Hamzy 2011-08-24 21:57:32 UTC
Description of problem:
Booting Fedora-20110817-ppc64-netinst.iso and using the following options
boot: linux vnc=1 selinux=0 systemd.log_target=kmsg systemd.log_level=debug rd.break

When you are in the shell, disable Anaconda's loader from starting:

switch_root:/# sed -i -e 's,/sbin/loader,/bin/bash,' /sysroot/lib/systemd/system/loader.service
switch_root:/# exit

Then, when you are dropped into bash, try and bring up the ethernet card.

bash-4.2# ifup eth0
/sbin/ifup: line 20: /etc/init.d/functions: No such file or directory
./network-functions: line 10: /etc/init.d/functions: No such file or directory
./network-functions: line 150: is_false: command not found
/etc/sysconfig/network-scripts/ifup-eth: line 18: /etc/init.d/functions: No such file or directory
./network-functions: line 10: /etc/init.d/functions: No such file or directory
./network-functions: line 150: is_false: command not found
./network-functions: line 10: /etc/init.d/functions: No such file or directory
./network-functions: line 10: /etc/init.d/functions: No such file or directory

Also, you cannot start sshd:

bash-4.2# service sshd start
/sbin/service: line 3: /etc/init.d/functions: No such file or directory

Comment 1 Martin Gracik 2011-08-26 08:19:04 UTC
The /etc/init.d/functions is part of initscripts package. We don't explicitly specify to install initscripts in the ramdisk, but shouldn't it be brought in as a dependency of ifup or sshd if it is needed?

Comment 2 Karsten Hopp 2011-08-30 13:17:30 UTC
The /etc/init.d link to /etc/rc.d/init.d/ is missing in images built with lorax-treebuilder

ln -sf rc.d/init.d /etc/init.d   fixes ifup eth0 for me

Comment 3 Will Woods 2011-08-30 15:25:55 UTC
initscripts gets pulled in by gfs2-utils at the moment, so it's in there.

As for the missing link.. I'll try to figure out why it's not getting created (or why it's getting accidentally deleted).

Comment 4 Will Woods 2011-08-30 15:32:06 UTC
Also, in theory (or maybe in the Glorious Future) you should be starting sshd using systemctl instead of the initscript, and ifup should be communicating directly with NetworkManager.. no idea if that's the reality yet, though.

Comment 5 Will Woods 2011-09-09 14:41:41 UTC
This should be fixed in treebuilder - runtime-cleanup.tmpl has the following:

removefrom chkconfig --allbut /etc/init.d

which should leave the /etc/init.d link to /etc/rc.d/init.d (as mentioned in comment #2).

Can someone confirm that it's fixed?

Comment 6 Will Woods 2011-09-22 15:54:55 UTC
since this seems to work in the treebuilder branch, I'm closing as NEXTRELEASE.


Note You need to log in before you can comment on or make changes to this bug.