summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-07-03 14:44:29 +0300
committernl6720 <nl6720@gmail.com>2020-07-11 16:30:25 +0300
commitd39e2ba41bf556674501062742190c29ee11cd59 (patch)
tree6ea377fb87ed5d60ca8460d9cd09192aa55cbdfe
parent0ba88cb2644ad2cdd897c012cd4a2c5a9652c601 (diff)
downloadarchiso32-d39e2ba41bf556674501062742190c29ee11cd59.tar.xz
Keep /root permissions as 750
The filesystem package installs /root as 750 not 700. Move chmod from customize_airootfs.sh to build.sh.
-rwxr-xr-xconfigs/releng/airootfs/root/customize_airootfs.sh1
-rwxr-xr-xconfigs/releng/build.sh2
2 files changed, 2 insertions, 1 deletions
diff --git a/configs/releng/airootfs/root/customize_airootfs.sh b/configs/releng/airootfs/root/customize_airootfs.sh
index 7c79023..5be4027 100755
--- a/configs/releng/airootfs/root/customize_airootfs.sh
+++ b/configs/releng/airootfs/root/customize_airootfs.sh
@@ -7,7 +7,6 @@ locale-gen
usermod -s /usr/bin/zsh root
cp -aT /etc/skel/ /root/
-chmod 700 /root
# unset the root password
passwd -d root
diff --git a/configs/releng/build.sh b/configs/releng/build.sh
index 6573613..73d22c8 100755
--- a/configs/releng/build.sh
+++ b/configs/releng/build.sh
@@ -131,6 +131,8 @@ make_customize_airootfs() {
-r '/root/customize_airootfs.sh' run
fi
rm "${work_dir}/x86_64/airootfs/root/customize_airootfs.sh"
+
+ chmod -f 750 "${work_dir}/x86_64/airootfs/root"
}
# Prepare kernel/initramfs ${install_dir}/boot/