On 09/04/2015 03:21 PM, Mark Lamourine wrote:
----- Original Message -----
On Thu, Sep 3, 2015 at 10:41 PM, Mark Lamourine <[email protected]> wrote:
I'm working on a custom build of Atomic on F23 beta using the fedora atomic
configuration repo here:
ssh://[email protected]/git/fedora-atomic.git
I'm using rpm-ostree-toolbox treecompose and then installer to generate the
bootable components.
When I pxe boot using images/images/pxeboot/{vmlinuz,initrd.img} and
specify
on the kernel cmdline to use root=live:http://.... sysroot fails to mount.
The target of the URL is a copy of the images/images/install.img squashfs
file.
The URL is resolvable and I can download it to /tmp when in dracut. I can
also mount it -o loop,ro and I can see the LiveOS directory inside which
appears to conform to the root=live convention.
It appears that only the NFS mount components are present and/or that the
root=live:http// input is not handled. The sysroot.mount target attempts
to
mount the full URL as NFS and obviously fails.
Should this work?
Could it be that your initramfs is missing the dmsquash-live module?
IIRC it is not part of the default initramfs.
cat > /etc/dracut.conf.d/foo.conf <<EOF
add_dracutmodules+=" dmsquash-live "
EOF
And the regenerate the initramfs using dracut -f
Hrrm. I didn't generate the initramfs manually, but using 'rpm-ostree-toolbox
installer'. Any hints where I'd look to get that change into the installer code?
BTW, is that change something I could/should do on the build host (f23 beta)
and which rpm-ostree-toolbox would inherit, or would it be set inside the build
environment itself?
Does your configuration contain this change?
https://git.fedorahosted.org/cgit/fedora-atomic.git/commit/?h=f23&id=2b7992b55f7056e6f10bf74864a50a70b289c5f7
If so, you may also need to add
dmsquash-live (and maybe "livenet")
to
"initramfs-args": ["--no-hostonly", "--add", "iscsi"]
of the .json file, but because pxe booting Atomic installer with http
used to work AFAIK [1], I would think the module has always been added
when regenerating initrafs during build process and it is now just
missing in your tree.
[1] Although when looking at my old PXE configurations I can see using
inst.repo=http://download.eng.bos.redhat.com/rel-eng/Atomic/7/trees/GA.brew/images/20150119.0/installer/
boot argument, no root=live:http:// but it does not mean
root=live:http:// shouldn't work as well.
Radek