From 72d798ad820912d861c5f43558746123aff09264 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 1 Nov 2024 22:28:34 +0100 Subject: [PATCH] change liveuser id from 999 to 64999 to fix id already used by systemd user in live medium creation [release 5.6-2mamba;Fri Jun 21 2024] --- livecd-tools.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/livecd-tools.spec b/livecd-tools.spec index 18d0945..8cc8cb5 100644 --- a/livecd-tools.spec +++ b/livecd-tools.spec @@ -1,11 +1,11 @@ -%define liveuser_uid 999 +%define liveuser_uid 64999 %define packager_groupid 65028 %define packager_userid 65028 %define lpadmin_uid 65032 %define lpadmin_gid 65032 Name: livecd-tools Version: 5.6 -Release: 1mamba +Release: 2mamba Summary: Live cd environment and utilities Group: System/Tools Vendor: openmamba @@ -16,6 +16,7 @@ Source0: https://gitlab.mambasoft.it/openmamba/livecd-tools.git/v%{version Source2: %{name}-Autostart-setkeyboard License: GPL ## AUTOBUILDREQ-BEGIN +BuildRequires: setup ## AUTOBUILDREQ-END Requires(pre): rpm Requires(pre): udev @@ -47,6 +48,7 @@ Requires(post):sudo Requires(post):system-base-openmamba Requires(post):desktop-base-openmamba Requires: systemd +Provides: user(liveuser) %description -n live-user-environment Configure a default user ('liveuser') for live environment. @@ -91,7 +93,7 @@ if [ $1 -eq 1 ]; then useradd liveuser \ -c "Live User" \ -G audio,filesharing,sysadmin,lpadmin,video,nopermfs,packager \ - -u %{liveuser_uid} + -u %{liveuser_uid} || exit 1 [ -e /home/liveuser ] || cp -a /etc/skel /home/liveuser fi : @@ -202,6 +204,9 @@ fi %attr(-,liveuser,users) %dir /home/liveuser %changelog +* Fri Jun 21 2024 Silvan Calarco 5.6-2mamba +- change liveuser id from 999 to 64999 to fix id already used by systemd user in live medium creation + * Wed May 08 2024 Automatic Build System 5.6-1mamba - update to 5.6