Commit 2d7d00de authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Fix missing helper pkg bug in create-helper script

Fix a bug in snf-image-create-helper where the script would fail if
the multistrap file did not contain an snf-image-helper package,
although this is allowed if the user has provided one from the
command-line.
parent 3209ce9c
......@@ -171,7 +171,7 @@ initrd=$(basename "$initrd")
(cd "$HELPER_DIR"; ln -fs "$kernel" kernel; ln -fs "$initrd" initrd)
pkg_installed=$(grep snf-image-helper "$HELPER_DIR/packages" > /dev/null && echo yes)
pkg_installed=$(grep snf-image-helper "$HELPER_DIR/packages" > /dev/null && echo yes) || true
if [ -z "$HELPER_PKG" -a -z "$pkg_installed" ]; then
log_error "No helper package was specified and non was found by the apt."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment