flatcar-scripts/chroot_version_hooks.d
Zdenek Behan 49a8e9687f upgrade hook: move PS1 niceties from .bashrc to profile.d
This solves two problems (and half):
a) messing with user's preference file is a no-no, if we want a
hardcoded behaviour like this, profile.d is the way to go
b) .bashrc settings are overridden when doing env-update; source
/etc/profile
c) profile.d will also apply to root (although not with sudo su)

BUG=none
TEST=below
1) ./run_chroot_version_hooks --version 21
2) see all fixed, source /etc/profile, and still see my prompt unchanged

Change-Id: I25b4602f4951b17815bcd312a8249320784c67e1
Reviewed-on: https://gerrit.chromium.org/gerrit/12539
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Tested-by: Zdenek Behan <zbehan@chromium.org>
Commit-Ready: Zdenek Behan <zbehan@chromium.org>
2011-12-09 12:00:59 -08:00
..
1_init chroot_upgrade: rename things before it's too late 2011-05-13 15:36:10 -07:00
2_path_update Add chroot version 2 upgrade script 2011-06-03 15:32:08 -07:00
3_libtool_update Fix *.pc files for folks who have /build/x86-mario.dev symlinked to /build/x86-mario 2011-06-10 00:24:20 -07:00
4_policykit_removal Upgrade script to handle policykit -> polkit migration. 2011-06-08 14:48:33 -07:00
5_symlink_pc_update Fix *.pc files for folks who have /build/x86-mario.dev symlinked to /build/x86-mario 2011-06-10 00:24:20 -07:00
6_mobile_broadband_removal Remove mobile-broadband-provider-info package, which has been replaced 2011-07-12 15:37:19 -07:00
7_host_gcc_upgrade gcc-update-hook: regenerate latest gcc prior to calling gcc-config 2011-09-02 16:30:23 -07:00
8_unmerge_gmp Remove old versions of dev-libs/gmp to ease chroot upgrades. 2011-09-12 10:45:18 -07:00
9_board_makeconf_setup Upgrade script to insert BOARD_USE into existing make.conf.board_setup files. 2011-09-13 18:03:48 -07:00
10_default_locales enter_chroot: restore auto locale generation 2011-09-19 21:57:14 -07:00
11_rm_bad_directory Actually rm -rf /does/not instead to fix metrics unit tests. 2011-10-06 00:19:03 -07:00
12_clean_old_config_files update hooks: 3c1d3d8be6, take two 2011-10-13 09:56:07 -07:00
13_enable_gold update hooks: drop useless +x perms on files 2011-10-19 16:48:55 -07:00
14_board_portage_env update hooks: add /etc/portage/env support 2011-10-20 11:06:39 -07:00
15_board_portage_env_undo update hooks: undo /etc/portage/env support 2011-11-03 16:13:22 -07:00
16_localtime update hooks: punt old localtime symlinks 2011-11-04 10:55:01 -07:00
17_sudo_90_cros Mid air collision of upgrade script 17_* 2011-11-18 23:04:35 -08:00
18_noop Uninstall GRUB 1.99 from chroot in favour of 1.97 2011-11-24 13:37:36 -08:00
19_sudo_90_cros Mid air collision of upgrade script 17_* 2011-11-18 23:04:35 -08:00
20_board_portage_bashrc update hooks: delete board /etc/portage/bashrc 2011-11-20 14:21:48 -08:00
21_grub_downgrade Uninstall GRUB 1.99 from chroot in favour of 1.97 2011-11-24 13:37:36 -08:00
22_trim_bashrc upgrade hook: move PS1 niceties from .bashrc to profile.d 2011-12-09 12:00:59 -08:00