On Aug 25, 2009, at 10:00 AM, Warren Togami <wtogami@xxxxxxxxxx> wrote:
On 08/16/2009 07:24 PM, Victor Lowther wrote:
+# if an nbd device is not somewhere in the chain of devices root
is mounted on,
+# fail the hostonly check.
+[ "$1" = "-h" ]&& {
+ rootdev=$(find_root_block_device)
+ [[ -b /dev/block/$rootdev ]] || exit 1
+ check_block_and_slaves is_nbd "$rootdev" || exit 1
+}
When will this ever work? More often than not you would be
generating a netboot in a chroot of the image.
Hmmm... I will have to think about that. Dracut needs to grow a --
root= option anyways, and mixing that functionality in with the --
hostonly functionality I have been working on seems like an obvious win.
You almost never generate the initrd on the running netbooted system.
This is not an area I work in too often, but is there a particular
reason why not?
Warren Togami
wtogami@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html