04-09-2025, 04:23 PM
(This post was last modified: 04-09-2025, 04:23 PM by Tim Curtis.)
IIRC it's actually the -e (extract) option that results in homedir being "cleaned". It makes a call to the getUserId() function in inc/common.php.
Moode will only function correctly if there is a single home directory and corresponding userid, the one created in the Pi Imager. This is normally not a problem since moode is headless a single user OS. The function getUserId() asserts this condition or aborts the startup sequence.
Code:
// Assumes only one dir under /home, the one matching the userid entered into
// the Raspberry Pi Imager when making the image.
function getUserId() {
Moode will only function correctly if there is a single home directory and corresponding userid, the one created in the Pi Imager. This is normally not a problem since moode is headless a single user OS. The function getUserId() asserts this condition or aborts the startup sequence.