diff options
Diffstat (limited to 'src/create.c')
-rw-r--r-- | src/create.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/create.c b/src/create.c index a033170..c1dbea3 100644 --- a/src/create.c +++ b/src/create.c @@ -15,6 +15,11 @@ static int create_main(int argc, char **argv) { + if (strcmp(apk_root, "/") == 0) { + apk_error("Will not recreate system root."); + return 1; + } + return apk_db_create(apk_root); } |