You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnfmt.Errorf("failed to delete overridden resolv.conf file: %w", err)
}
returnerr
}
in order to support managed resolv.conf, as in systemd-resolved (reference).
This breaks managed resolver functionality in cases where /etc is ro, notable example being when setting up a verity rootfs, which is otherwise supported by imagecustomizer.
Possible suggestions include:
Bypass override|deleteResolvConf() if /etc/resolv.conf exists and it's a link, or,
Call those functions before the scriptable customization stages run
Don't call those functions if /etc is calculated to be in a storage.fileSystems that is also an os.verity.dataPartition,
Both options put the user in control as they need to explicitly take an action (create a link, create resolv.conf through a script, or declare a verity partition) that should change the default behavior of resolv.conf management.
The third one is more convoluted implementation wise, because it'll also require creating the symlink, which means assuming that DNS resolution will be managed by systemd-resolved.
The text was updated successfully, but these errors were encountered:
Per @cwize1, it is worth noting that the finalizeCustomization scripts run after the resolv.conf file is deleted. This provides an opportunity for the user to set the file explictly.
imagecustomizer
overrides or deletes/etc/resolv.conf
inazurelinux/toolkit/tools/pkg/imagecustomizerlib/customizeutils.go
Lines 110 to 147 in a952e5f
resolv.conf
, as insystemd-resolved
(reference).This breaks managed resolver functionality in cases where
/etc
isro
, notable example being when setting up a verity rootfs, which is otherwise supported byimagecustomizer
.Possible suggestions include:
override|deleteResolvConf()
if/etc/resolv.conf
exists and it's a link, or,/etc
is calculated to be in astorage.fileSystems
that is also anos.verity.dataPartition
,Both options put the user in control as they need to explicitly take an action (create a link, create resolv.conf through a script, or declare a verity partition) that should change the default behavior of
resolv.conf
management.The third one is more convoluted implementation wise, because it'll also require creating the symlink, which means assuming that DNS resolution will be managed by
systemd-resolved
.The text was updated successfully, but these errors were encountered: