Keep /root permissions as 750

The filesystem package installs /root as 750 not 700.

Move chmod from customize_airootfs.sh to build.sh.
This commit is contained in:
nl6720 2020-07-03 14:44:29 +03:00
parent 0ba88cb264
commit d39e2ba41b
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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/