From d39e2ba41bf556674501062742190c29ee11cd59 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Fri, 3 Jul 2020 14:44:29 +0300 Subject: Keep /root permissions as 750 The filesystem package installs /root as 750 not 700. Move chmod from customize_airootfs.sh to build.sh. --- configs/releng/airootfs/root/customize_airootfs.sh | 1 - configs/releng/build.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'configs/releng') 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/ -- cgit v1.2.3-70-g09d2