useful when creating generic images on loop device (/dev not mounted,
root referenced by either LABEL or UUID, required modules added manually)
fi
if [ ! -r "$rootdev" ]; then
- echo >&2 "$function: rootfs device file $rootdev doesn't exist"
- return 1
+ echo >&2 "WARNING: $function: rootfs device file $rootdev doesn't exist"
fi
return 0
if [ "$rootdev" = "/dev/nfs" ]; then
echo "rootfs on NFS root=/dev/nfs"
else
- [ ! -e "$DESTDIR/$rootdev" ] && inst $rootdev $rootdev
+ [ -e $rootdev ] && [ ! -e "$DESTDIR/$rootdev" ] && inst $rootdev $rootdev
fi
# parse 'root=xxx' kernel commandline