summaryrefslogtreecommitdiff
path: root/tests/test-admin-deploy-karg.sh
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-01-13 08:45:56 -0500
committerColin Walters <walters@verbum.org>2014-01-15 09:19:32 -0500
commit108546c08ceb2117be652c321cfa49316ba89345 (patch)
treebdc1e8310858d80b5a399ae3fb687791b2fde5ac /tests/test-admin-deploy-karg.sh
parent54e58a51ca3ce14175c0af99732213800fb4be30 (diff)
downloadostree-108546c08ceb2117be652c321cfa49316ba89345.tar.gz
admin: Add --karg-proc-cmdline argument
When installing a new tree inside an existing OS, this is a convenient way to include the command line arguments one needs (such as root=).
Diffstat (limited to 'tests/test-admin-deploy-karg.sh')
-rw-r--r--tests/test-admin-deploy-karg.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test-admin-deploy-karg.sh b/tests/test-admin-deploy-karg.sh
index 1f0b9c7e..395e2816 100644
--- a/tests/test-admin-deploy-karg.sh
+++ b/tests/test-admin-deploy-karg.sh
@@ -44,3 +44,11 @@ assert_file_has_content sysroot/boot/loader/entries/ostree-testos-0.conf 'option
assert_file_has_content sysroot/boot/loader/entries/ostree-testos-0.conf 'options.*ANOTHERARG=ANOTHERVALUE'
echo "ok deploy with --karg, but same config"
+
+ostree admin --sysroot=sysroot deploy --karg-proc-cmdline --os=testos testos:testos/buildmaster/x86_64-runtime
+# Here we're asserting that the *host* system has a root= kernel
+# argument. I think it's unlikely that anyone doesn't have one, but
+# if this is not true for you, please file a bug!
+assert_file_has_content sysroot/boot/loader/entries/ostree-testos-0.conf 'options.*root=.'
+
+echo "ok deploy --karg-proc-cmdline"