summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_hacks8
-rwxr-xr-xhelpers/lh_chroot_local-includes2
2 files changed, 1 insertions, 9 deletions
diff --git a/helpers/lh_chroot_hacks b/helpers/lh_chroot_hacks
index e2cb8cc3b..a2021798c 100755
--- a/helpers/lh_chroot_hacks
+++ b/helpers/lh_chroot_hacks
@@ -100,14 +100,6 @@ then
chown -R --quiet 999:999 chroot/home/${LH_USERNAME}
fi
-# Setting ownership for /etc/skel - this is where people often include stuff
-# through local includes.
-chown -R --quiet 0:0 chroot/home/etc/skel
-
-# Making sure /etc/sudoers has right owner/permissions
-chown --quiet 0:0 chroot/home/etc/sudoers
-chmod 0440 chroot/etc/sudoers
-
# This is a temporary hack to get rid of fstab;
# needs cleanup in live-initramfs first to proper fix.
if [ "${LH_DEBIAN_INSTALLER}" = "live" ]
diff --git a/helpers/lh_chroot_local-includes b/helpers/lh_chroot_local-includes
index c1308e1b3..ecb68c777 100755
--- a/helpers/lh_chroot_local-includes
+++ b/helpers/lh_chroot_local-includes
@@ -46,7 +46,7 @@ if Find_files config/chroot_local-includes/
then
# Copying includes
cd config/chroot_local-includes
- find . | cpio -dmpu "${OLDPWD}"/chroot
+ find . | cpio -dmpu --no-preserve-owner "${OLDPWD}"/chroot
cd "${OLDPWD}"
# Creating stage file