*** This bug is a duplicate of bug 1587971 ***
https://bugs.launchpad.net/bugs/1587971
your recreate steps have a bit of an issue above, in that you 'echo' and
then <<EOF. which just doesn't do anything but create empty user-data.
I might suggest using mount-image-callback as it makes a bit nicer.
sdir=$PWD/sdir
echo "Mounting cloudimg.raw into $sdir"
mkdir -p $sdir/var/lib/cloud/seed/nocloud
printf "dsmode: local\n" > $mnt_dir/var/lib/cloud/seed/nocloud/meta-data
cat > $sdir/var/lib/cloud/seed/nocloud/user-data <<EOF
#cloud-config
chpasswd:
expire: False
list: |
root:passw0rd
EOF
tar -cf - -C "$sdir" . | sudo mount-image-callback cloudimg.raw -- tar
-C _MOUNTPOINT_ -xvf -
That way you dont have to be root for anything other than the mount-
image-callback or know about the offset of the partition.
the resize issue is actually fixed under bug 1587971. Your stacktrace
above showed a bug that I'm fixing now that occurred on reboot of a
DataSourceNoCloud. I opened that as bug 1592505.
** This bug has been marked a duplicate of bug 1587971
recent versions of util-linux do not like how growpart calls partx
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1591181
Title:
Ubuntu yakkety cloud image does not grow root partition
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-images/+bug/1591181/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs