Merge "debian: use sudo to create file in the chroot"
This commit is contained in:
commit
53561fc295
@ -70,7 +70,7 @@ LABEL=cloudimg-rootfs / ext4 errors=remount-ro 0 1
|
||||
sudo sh -c "echo 'debian' > ${TARGET_ROOT}/etc/hostname"
|
||||
|
||||
# specify a hostname so that cloud-init does not default to (None)
|
||||
echo "hostname: debian" > ${TARGET_ROOT}/etc/cloud/cloud.cfg.d/01_hostname.cfg
|
||||
sudo sh -c "echo 'hostname: debian' > ${TARGET_ROOT}/etc/cloud/cloud.cfg.d/01_hostname.cfg"
|
||||
|
||||
echo Caching debootstrap result in $DEBOOTSTRAP_TARBALL
|
||||
sudo tar -C $TARGET_ROOT -zcf $DEBOOTSTRAP_TARBALL .
|
||||
|
Loading…
Reference in New Issue
Block a user