mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-07 21:16:57 +02:00
The make_chroot script was upgraded to add its customizations to a file in /etc/sudoers.d/ instead of modifying /etc/sudoers. Then the sudo ebuild was updated to not modify /etc/sudoers anymore. This meant for older chroots, the customizations that make_chroot added were lost in the process. Add an upgrade hook that creates the split /etc/sudoers.d/ file for older chroots that did not go through the newer make_chroot. BUG=chromium-os:11991 TEST=set chroot to 16, deleted file, ran build_packages: chroot updated to 17 and created correct /etc/sudoers.d/90_cros file TEST=set chroot to 17, create /etc/sudoers.d/90_cros, ran build_packages: chroot updated to 17 and left existing file alone Change-Id: I279ac3e15380e02b50a752a62cecbd94171fd724 Reviewed-on: https://gerrit.chromium.org/gerrit/11774 Reviewed-by: David James <davidjames@chromium.org> Commit-Ready: Mike Frysinger <vapier@chromium.org> Tested-by: Mike Frysinger <vapier@chromium.org> |
||
---|---|---|
.. | ||
1_init | ||
2_path_update | ||
3_libtool_update | ||
4_policykit_removal | ||
5_symlink_pc_update | ||
6_mobile_broadband_removal | ||
7_host_gcc_upgrade | ||
8_unmerge_gmp | ||
9_board_makeconf_setup | ||
10_default_locales | ||
11_rm_bad_directory | ||
12_clean_old_config_files | ||
13_enable_gold | ||
14_board_portage_env | ||
15_board_portage_env_undo | ||
16_localtime | ||
17_sudo_90_cros |