diff --git a/sdk_lib/make_chroot.sh b/sdk_lib/make_chroot.sh index 6a710a1667..5057aedfd2 100755 --- a/sdk_lib/make_chroot.sh +++ b/sdk_lib/make_chroot.sh @@ -154,15 +154,9 @@ init_setup () { ln -sf "${CHROOT_TRUNK_DIR}/src/third_party/portage-stable" \ "${FLAGS_chroot}"/"${PORTAGE_STABLE_OVERLAY}" - # Some operations need an mtab. - ln -sfT /proc/mounts "${FLAGS_chroot}/etc/mtab" - # Set up sudoers. Inside the chroot, the user can sudo without a password. # (Safe enough, since the only way into the chroot is to 'sudo chroot', so # the user's already typed in one sudo password...) - # Make sure the sudoers.d subdir exists as older stage3 base images lack it. - mkdir -p "${FLAGS_chroot}/etc/sudoers.d" - # Setup proxied vars. load_environment_whitelist local extended_whitelist=( @@ -173,14 +167,10 @@ init_setup () { cat > "${FLAGS_chroot}/etc/sudoers.d/90_cros" <> "${localegen}" -en_US ISO-8859-1 -en_US.UTF-8 UTF-8 -EOF - fi - # Create ~/trunk symlink, it must point to CHROOT_TRUNK_DIR ln -sfT "${CHROOT_TRUNK_DIR}" "$FLAGS_chroot/home/${SUDO_USER}/trunk"