From 64b957e5ba4b267d5929201788ff68ec57f771ef Mon Sep 17 00:00:00 2001 From: spycat88 Date: Sat, 30 Mar 2024 12:42:55 +0000 Subject: [PATCH] distro: default root password to 'rocknix' --- distributions/ROCKNIX/options | 2 +- packages/rocknix/config/system/configs/system.cfg | 2 +- packages/sysutils/busybox/package.mk | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/distributions/ROCKNIX/options b/distributions/ROCKNIX/options index 58ae5c063..606b04595 100644 --- a/distributions/ROCKNIX/options +++ b/distributions/ROCKNIX/options @@ -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" diff --git a/packages/rocknix/config/system/configs/system.cfg b/packages/rocknix/config/system/configs/system.cfg index 2b08af871..454fb2fc5 100644 --- a/packages/rocknix/config/system/configs/system.cfg +++ b/packages/rocknix/config/system/configs/system.cfg @@ -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 diff --git a/packages/sysutils/busybox/package.mk b/packages/sysutils/busybox/package.mk index ad2eab0f9..8bb46f14f 100644 --- a/packages/sysutils/busybox/package.mk +++ b/packages/sysutils/busybox/package.mk @@ -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