Bug 781983
| Summary: | Extend functionality to support LiveOS via nfs | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Martin Banas <mbanas> | ||||
| Component: | dracut | Assignee: | dracut-maint | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | rawhide | CC: | dracut-maint, harald, jonathan, jstodola, kparal, mbanas, pholica | ||||
| Target Milestone: | --- | Keywords: | FutureFeature | ||||
| Target Release: | --- | ||||||
| Hardware: | All | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | dracut-017-40.git20120308.fc17 | Doc Type: | Enhancement | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-02-20 12:34:52 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 761530, 799508 | ||||||
| Attachments: |
|
||||||
|
Description
Martin Banas
2012-01-16 09:09:53 UTC
Will this also go to F17? dracut-016-9.git20120217.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/dracut-016-9.git20120217.fc17 Hello Harald, I was trying to get it working today. I made it work if I mounted rootfs.img (which is in squashfs.img) to LiveOS folder and exported this folder via nfs. Then I add this to cmdline: root=nfs:server:path. What we need is to give dracut path to squashfs.img file, and dracut should handle it. I was trying to do this, but dracut refused to continue. I'm thinking about something like: root=live:nfs:server:path/squasfs.img. Are you able to add this functionality? Thank you, Martin might already work: root=live:nfs://server:path/squasfs.img It's not working with: dracut-016-9.git20120217.el7.noarch.rpm [ 89.558344] dracut Warning: Unable to process initqueue dracut Warning: Unable to process initqueue [ 89.558731] dracut Warning: dracut: FATAL: failed to download live image: error 1 dracut Warning: dracut: FATAL: failed to download live image: error 1 [ 89.558922] dracut Warning: dracut: Refusing to continue dracut Warning: dracut: Refusing to continue [ 89.559181] dracut Warning: /dev/root does not exist dracut Warning: /dev/root does not exist [ 89.559648] dracut Warning: Signal caught! dracut Warning: Signal caught! [ 89.559986] dracut Warning: dracut: FATAL: failed to download live image: error 1 dracut Warning: dracut: FATAL: failed to download live image: error 1 [ 89.560179] dracut Warning: dracut: Refusing to continue dracut Warning: dracut: Refusing to continue [ 89.560430] dracut Warning: /dev/root does not exist dracut Warning: /dev/root does not exist oh.. can you try with "rd.neednet=1 ip=dhcp" added? dracut-016-9.git20120217.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. Tried with "ip=dhcp rd.neednet=1" on the command line, but no success. Kernel command line: root=live:nfs://server:/some/path/ppc64/os/LiveOS/squashfs.img ip=dhcp rd.neednet=1 lang=en_US.UTF-8 keymap=us ksdevice=ea:07:9e:21:59:04 ... [ 77.668279] dracut Warning: Unable to process initqueue dracut Warning: Unable to process initqueue [ 77.668682] dracut Warning: dracut: FATAL: failed to download live image: error 1 dracut Warning: dracut: FATAL: failed to download live image: error 1 [ 77.668889] dracut Warning: dracut: Refusing to continue dracut Warning: dracut: Refusing to continue [ 77.669154] dracut Warning: /dev/root does not exist dracut Warning: /dev/root does not exist dracut version: dracut-016-9.git20120217.el7 Created attachment 567023 [details]
patch proposal
Proposing a patch to fix mounting an image via nfs.
Tested with dracut-016-9.git20120217.el7 + patch
cmdline: root=live:nfs://10.16.105.192:/srv/all/install.img
...
Ý 22.638272¨ dracut: fetching nfs://10.16.105.192:/srv/all/install.img
Ý 22.654862¨ FS-Cache: Loaded
Ý 22.688988¨ FS-Cache: Netfs 'nfs' registered for caching
Ý 23.185513¨ squashfs: version 4.0 (2009/01/31) Phillip Lougher
Ý 23.237941¨ EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts:
(null)
Ý 23.247038¨ dracut: Mounted root filesystem /dev/mapper/live-rw
//lib/dracut/hooks/pre-pivot/50mount-usr.sh: line 9: /sysroot/etc/fstab: No such
file or directory
rpcbind: rpcbind terminating on signal. Restart with "rpcbind -w"
Ý 23.614361¨ dracut: Switching root
Starting the zSeries initrd to configure networking. Version is 1.2
mount: proc already mounted
Starting udev...
...
dracut-017-22.git20120302.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/dracut-017-22.git20120302.fc17 dracut-017-39.git20120308.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/dracut-017-39.git20120308.fc17 dracut-017-40.git20120308.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/dracut-017-40.git20120308.fc17 dracut-017-40.git20120308.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/dracut-017-40.git20120308.fc17 dracut-017-40.git20120308.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |