mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-25 18:53:44 +00:00
lib: Check rootfs parameter
Add a check on the rootfs parameter in `build_rootfs()`. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
@@ -94,6 +94,8 @@ build_rootfs()
|
|||||||
# Mandatory
|
# Mandatory
|
||||||
local ROOTFS_DIR="$1"
|
local ROOTFS_DIR="$1"
|
||||||
|
|
||||||
|
[ -z "$ROOTFS_DIR" ] && die "need rootfs"
|
||||||
|
|
||||||
# In case of support EXTRA packages, use it to allow
|
# In case of support EXTRA packages, use it to allow
|
||||||
# users add more packages to the base rootfs
|
# users add more packages to the base rootfs
|
||||||
local EXTRA_PKGS=${EXTRA_PKGS:-""}
|
local EXTRA_PKGS=${EXTRA_PKGS:-""}
|
||||||
|
Reference in New Issue
Block a user