Merge pull request #24 from spycat88/dont-rotate-root-password

distro: default root password to 'rocknix'
This commit is contained in:
r3claimer 2024-03-30 14:08:23 -07:00 committed by GitHub
commit 00ef41e83f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View file

@ -32,7 +32,7 @@
BUG_REPORT_URL="https://rocknix.org"
# Root password to integrate in the target system
ROOT_PASSWORD="system generated"
ROOT_PASSWORD="rocknix"
# Remove kernel and system files from the release directory.
COREELEC_TARGET_REMOVE="kernel_system"

View file

@ -152,7 +152,7 @@ pokemini.ratio=3/2
psx.integerscale=0
psx.ratio=4/3
rotate.root.password=0
root.password=root
root.password=rocknix
samba.enabled=0
saturn.integerscale=0
saturn.ratio=4/3

View file

@ -169,12 +169,11 @@ post_install() {
rm -f ${INSTALL}/usr/bin/sh
ln -s bash ${INSTALL}/usr/bin/sh
fi
ROOT_PWD="`${TOOLCHAIN}/bin/cryptpw -m sha512 ${ROOT_PASSWORD}`"
echo "chmod 4755 ${INSTALL}/usr/bin/busybox" >> ${FAKEROOT_SCRIPT}
echo "chmod 000 ${INSTALL}/usr/cache/shadow" >> ${FAKEROOT_SCRIPT}
add_user root "${ROOT_PWD}" 0 0 "Root User" "/storage" "/bin/sh"
add_user root "${ROOT_PASSWORD}" 0 0 "Root User" "/storage" "/bin/sh"
add_group root 0
add_group users 100