summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2018-01-03 10:31:34 +0100
committerTimo Teräs <timo.teras@iki.fi>2018-01-03 14:21:40 +0200
commite0eff8742f342c2c23e1d7ee081f3afd08cb5169 (patch)
tree4086a80549eae3629c516cbe8cdeb75dfd3aa240
parent23cb10477537a2bbf40ac06a61046f75f2b160c5 (diff)
downloadapk-tools-e0eff8742f342c2c23e1d7ee081f3afd08cb5169.tar.gz
apk-tools-e0eff8742f342c2c23e1d7ee081f3afd08cb5169.tar.bz2
apk-tools-e0eff8742f342c2c23e1d7ee081f3afd08cb5169.tar.xz
apk-tools-e0eff8742f342c2c23e1d7ee081f3afd08cb5169.zip
add new umbrella flag --initramfs-diskless-boot
This flag enables a group of options used during initramfs tmpfs initial install.
-rw-r--r--src/apk.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index d4ce396..73c9f21 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -220,6 +220,10 @@ static int option_parse_commit(void *ctx, struct apk_db_options *dbopts, int opt
case 0x117:
apk_flags |= APK_NO_COMMIT_HOOKS;
break;
+ case 0x118:
+ dbopts->open_flags |= APK_OPENF_CREATE;
+ apk_flags |= APK_FORCE | APK_NO_COMMIT_HOOKS;
+ break;
default:
return -ENOTSUP;
}
@@ -232,6 +236,8 @@ static const struct apk_option options_commit[] = {
{ 0x111, "overlay-from-stdin", "Read list of overlay files from stdin" },
{ 0x113, "no-scripts", "Do not execute any scripts" },
{ 0x117, "no-commit-hooks", "Skip pre/post hook scripts (but not other scripts)" },
+ { 0x118, "initramfs-diskless-boot",
+ "Enables options for diskeless initramfs boot (e.g. skip hooks)" },
};
const struct apk_option_group optgroup_commit = {