Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
781f6de35a | ||
![]() |
6131156806 | ||
![]() |
c9fbed1f2d | ||
![]() |
0ec222726b |
@@ -3,7 +3,7 @@
|
||||
LIBDIR='@libdir@'
|
||||
DATADIR='@datadir@'
|
||||
SYSCONFDIR='@sysconfdir@'
|
||||
LOGFILE='/var/log/cromnix-live.log'
|
||||
LOGFILE='/var/log/artix-live.log'
|
||||
|
||||
export LC_MESSAGES=C
|
||||
export LANG=C
|
||||
@@ -41,9 +41,9 @@ livetimer=$(get_timer_ms)
|
||||
configure_sudoers_d
|
||||
echo "Configured sudoers: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_machine_id
|
||||
echo "Configured machine-id: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
# livetimer=$(get_timer_ms)
|
||||
# configure_machine_id
|
||||
# echo "Configured machine-id: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_accountsservice "${username}"
|
||||
|
@@ -3,21 +3,15 @@
|
||||
# autologin
|
||||
autologin=true
|
||||
|
||||
# login shell
|
||||
login_shell=/bin/bash
|
||||
|
||||
# live username
|
||||
username=cromnix
|
||||
username=artix
|
||||
|
||||
# live password
|
||||
password=cromnix
|
||||
password=artix
|
||||
|
||||
# live group membership
|
||||
addgroups='video,power,disk,storage,optical,network,lp,scanner,wheel'
|
||||
|
||||
# iso name
|
||||
iso_name=cromnix
|
||||
|
||||
# default_desktop_file
|
||||
default_desktop_file=lxqt
|
||||
|
||||
|
@@ -12,6 +12,6 @@ depend() {
|
||||
start() {
|
||||
ebegin "Running pacman initialization"
|
||||
/usr/bin/pacman-key --init &> /dev/null
|
||||
/usr/bin/pacman-key --populate archlinux cromnix &> /dev/null
|
||||
/usr/bin/pacman-key --populate archlinux artix &> /dev/null
|
||||
eend $?
|
||||
}
|
||||
|
@@ -58,8 +58,6 @@ load_live_config(){
|
||||
|
||||
[[ -z ${addgroups} ]] && addgroups=""
|
||||
|
||||
[[ -z ${login_shell} ]] && login_shell="/bin/bash"
|
||||
|
||||
echo "Loaded ${live_conf}: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
return 0
|
||||
@@ -175,9 +173,9 @@ gen_pw(){
|
||||
configure_user(){
|
||||
# set up user and password
|
||||
if [[ -n ${password} ]];then
|
||||
useradd -m -G ${addgroups} -p $(gen_pw) -s ${login_shell} ${username}
|
||||
useradd -m -G ${addgroups} -p $(gen_pw) -s /bin/bash ${username}
|
||||
else
|
||||
useradd -m -G ${addgroups} -s ${login_shell} ${username}
|
||||
useradd -m -G ${addgroups} -s /bin/bash ${username}
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -271,17 +269,17 @@ configure_language(){
|
||||
echo "Configured timezone: ${timezone}" >> "${LOGFILE}"
|
||||
}
|
||||
|
||||
configure_machine_id(){
|
||||
if [ -e "/etc/machine-id" ] ; then
|
||||
# delete existing machine-id
|
||||
echo "Deleting existing machine-id ..." >> "${LOGFILE}"
|
||||
rm /etc/machine-id
|
||||
fi
|
||||
# set unique machine-id
|
||||
echo "Setting machine-id ..." >> "${LOGFILE}"
|
||||
dbus-uuidgen --ensure=/etc/machine-id
|
||||
ln -sf /etc/machine-id /var/lib/dbus/machine-id
|
||||
}
|
||||
# configure_machine_id(){
|
||||
# if [ -e "/etc/machine-id" ] ; then
|
||||
# # delete existing machine-id
|
||||
# echo "Deleting existing machine-id ..." >> "${LOGFILE}"
|
||||
# rm /etc/machine-id
|
||||
# fi
|
||||
# # set unique machine-id
|
||||
# echo "Setting machine-id ..." >> "${LOGFILE}"
|
||||
# dbus-uuidgen --ensure=/etc/machine-id
|
||||
# ln -sf /etc/machine-id /var/lib/dbus/machine-id
|
||||
# }
|
||||
|
||||
configure_sudoers_d(){
|
||||
echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/g_wheel
|
||||
|
Reference in New Issue
Block a user