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]

This commit is contained in:
Silvan Calarco 2024-11-01 22:28:34 +01:00
parent c8fac1dd4d
commit 72d798ad82

View File

@ -1,11 +1,11 @@
%define liveuser_uid 999 %define liveuser_uid 64999
%define packager_groupid 65028 %define packager_groupid 65028
%define packager_userid 65028 %define packager_userid 65028
%define lpadmin_uid 65032 %define lpadmin_uid 65032
%define lpadmin_gid 65032 %define lpadmin_gid 65032
Name: livecd-tools Name: livecd-tools
Version: 5.6 Version: 5.6
Release: 1mamba Release: 2mamba
Summary: Live cd environment and utilities Summary: Live cd environment and utilities
Group: System/Tools Group: System/Tools
Vendor: openmamba Vendor: openmamba
@ -16,6 +16,7 @@ Source0: https://gitlab.mambasoft.it/openmamba/livecd-tools.git/v%{version
Source2: %{name}-Autostart-setkeyboard Source2: %{name}-Autostart-setkeyboard
License: GPL License: GPL
## AUTOBUILDREQ-BEGIN ## AUTOBUILDREQ-BEGIN
BuildRequires: setup
## AUTOBUILDREQ-END ## AUTOBUILDREQ-END
Requires(pre): rpm Requires(pre): rpm
Requires(pre): udev Requires(pre): udev
@ -47,6 +48,7 @@ Requires(post):sudo
Requires(post):system-base-openmamba Requires(post):system-base-openmamba
Requires(post):desktop-base-openmamba Requires(post):desktop-base-openmamba
Requires: systemd Requires: systemd
Provides: user(liveuser)
%description -n live-user-environment %description -n live-user-environment
Configure a default user ('liveuser') for live environment. Configure a default user ('liveuser') for live environment.
@ -91,7 +93,7 @@ if [ $1 -eq 1 ]; then
useradd liveuser \ useradd liveuser \
-c "Live User" \ -c "Live User" \
-G audio,filesharing,sysadmin,lpadmin,video,nopermfs,packager \ -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 [ -e /home/liveuser ] || cp -a /etc/skel /home/liveuser
fi fi
: :
@ -202,6 +204,9 @@ fi
%attr(-,liveuser,users) %dir /home/liveuser %attr(-,liveuser,users) %dir /home/liveuser
%changelog %changelog
* Fri Jun 21 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <autodist@mambasoft.it> 5.6-1mamba * Wed May 08 2024 Automatic Build System <autodist@mambasoft.it> 5.6-1mamba
- update to 5.6 - update to 5.6