mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-09-01 07:21:44 +00:00
propagate --local to elemental pull-image
fixes https://github.com/kairos-io/kairos/issues/419
This commit is contained in:
@@ -267,7 +267,7 @@ ensure_dir_structure $TARGET
|
|||||||
# Download the container image
|
# Download the container image
|
||||||
if [ -z "$directory" ]; then
|
if [ -z "$directory" ]; then
|
||||||
echo ">>> Downloading container image"
|
echo ">>> Downloading container image"
|
||||||
elemental pull-image $container_image $TARGET
|
elemental pull-image $( (( $local_build == 'true')) && printf %s '--local' ) $container_image $TARGET
|
||||||
else
|
else
|
||||||
echo ">>> Copying files from $directory"
|
echo ">>> Copying files from $directory"
|
||||||
rsync -axq --exclude='host' --exclude='mnt' --exclude='proc' --exclude='sys' --exclude='dev' --exclude='tmp' ${directory}/ $TARGET
|
rsync -axq --exclude='host' --exclude='mnt' --exclude='proc' --exclude='sys' --exclude='dev' --exclude='tmp' ${directory}/ $TARGET
|
||||||
|
Reference in New Issue
Block a user