diff options
author | Scott Moser <smoser@brickies.net> | 2016-11-18 15:35:05 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2016-11-18 16:50:44 -0500 |
commit | b6d4f94134d0963af7c5384994ab35dfc05983bf (patch) | |
tree | bbe1d0f829b31bbef32fa95f99ff4a8acc35a3aa /LICENSE | |
parent | a6cb29c7ffb09c3916e747280f0c9d05c4955e6d (diff) | |
download | vyos-cloud-init-b6d4f94134d0963af7c5384994ab35dfc05983bf.tar.gz vyos-cloud-init-b6d4f94134d0963af7c5384994ab35dfc05983bf.zip |
debian/cloud-init.postinst: update /etc/fstab on Azure instances.
The edit consists of replacing
comment=cloudconfig
with
x-systemd.requires,comment=cloudconfig
inside of the 4th (fs_mntops) field in fstab.
The edits are carefully safeguarded by checks for:
a.) existance of /var/lib/cloud/instance/datasource
b.) running on Azure per previous datasource run.
c.) existance of /etc/fstab
d.) upgrading from sufficiently old version
Additionally before any write is done, we check that the new
and old fstab file differ.
LP: #1611074
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions