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. You almost never generate the initrd
on the running netbooted system.
Warren Togami
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html