I tested this latest fix and it looks good to me. The post-install fix
seems to work and after multiple resizes I still see /mnt coming back as
ext4
-> Pre-install
$ dpkg -l | grep 'cloudinit '
ii cloud-init 0.7.8-1-g3705bb5-0ubuntu1~16.04.3 all
Init scripts for cloud instances
$ grep mnt /etc/fstab
/dev/disk/cloud/azure_resource-part1 /mnt auto
defaults,nofail,comment=cloudconfig 0 2
apt-get install cloud-init
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
cloud-init
1 upgraded, 0 newly installed, 0 to remove and 45 not upgraded.
Need to get 288 kB of archives.
After this operation, 80.9 kB of additional disk space will be used.
Get:1 http://azure.archive.ubuntu.com/ubuntu xenial-proposed/main amd64
cloud-init all 0.7.8-49-g9e904bb-0ubuntu1~16.04.1 [288 kB]
Fetched 288 kB in 0s (651 kB/s)
Preconfiguring packages ...
(Reading database ... 61252 files and directories currently installed.)
Preparing to unpack .../cloud-init_0.7.8-49-g9e904bb-0ubuntu1~16.04.1_all.deb
...
Unpacking cloud-init (0.7.8-49-g9e904bb-0ubuntu1~16.04.1) over
(0.7.8-1-g3705bb5-0ubuntu1~16.04.3) ...
Processing triggers for ureadahead (0.100.0-19) ...
Setting up cloud-init (0.7.8-49-g9e904bb-0ubuntu1~16.04.1) ...
Installing new version of config file /etc/cloud/cloud.cfg ...
Leaving 'diversion of /etc/init/ureadahead.conf to
/etc/init/ureadahead.conf.disabled by cloud-init'
cloud-init postinst fixed /etc/fstab for x-systemd.requires
-> Post-install
$ dpkg -l | grep 'cloudinit '
ii cloud-init 0.7.8-49-g9e904bb-0ubuntu1~16.04.1 all
Init scripts for cloud instances
$ grep mnt /etc/fstab
/dev/disk/cloud/azure_resource-part1 /mnt auto
defaults,nofail,x-systemd.requires=cloud-init.service,comment=cloudconfig
0 2
-> After Resize
/dev/sdb1 ext4 281G 63M 267G 1% /mnt
-> After another resize
/dev/sdb1 ext4 596G 70M 566G 1% /mnt
-> After yet another resize
/dev/sdb1 ext4 69G 52M 66G 1% /mnt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1611074
Title:
Reformatting of ephemeral drive fails on resize of Azure VM
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1611074/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs