Commit 1531192c authored by Timo Teräs's avatar Timo Teräs
Browse files

add: ignore install failures on 'apk add --force'

and use this option in initramfs, so we are likely to get an usable
environment even if some packages from world are missing. fixes #50.
parent 812a6a31
......@@ -145,7 +145,8 @@ static int add_main(void *ctx, int argc, char **argv)
r = apk_state_lock_dependency(state, &pkgs->item[i]);
if (r != 0) {
apk_error("Unable to install '%s'", pkgs->item[i].name->name);
goto err;
if (!(apk_flags & APK_FORCE))
goto err;
if (!virtpkg)
apk_deps_add(&, &pkgs->item[i]);
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