Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c48893ded2 | ||
![]() |
781f6de35a |
@@ -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}"
|
||||
@@ -53,6 +53,10 @@ livetimer=$(get_timer_ms)
|
||||
configure_displaymanager
|
||||
echo "Configured displaymanager: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_calamares
|
||||
echo "Configured calamares unpack ${unpack} $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
||||
livetimer=$(get_timer_ms)
|
||||
configure_user_root /
|
||||
echo "Configured root user: $(elapsed_time_ms ${livetimer})ms" >> "${LOGFILE}"
|
||||
|
@@ -33,6 +33,10 @@ get_tz(){
|
||||
echo $(kernel_cmdline tz)
|
||||
}
|
||||
|
||||
get_cal_mode(){
|
||||
echo $(kernel_cmdline unpack)
|
||||
}
|
||||
|
||||
get_timer_ms(){
|
||||
echo $(date +%s%3N)
|
||||
}
|
||||
@@ -269,16 +273,30 @@ 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
|
||||
write_unpack_conf(){
|
||||
local conf="/etc/calamares/modules/unpackfs.conf"
|
||||
echo "---" > "$conf"
|
||||
echo "unpack:" >> "$conf"
|
||||
echo " - source: \"/run/miso/bootmnt/artix/$(uname -m)/rootfs.sfs\"" >> "$conf"
|
||||
echo " sourcefs: \"squashfs\"" >> "$conf"
|
||||
echo " destination: \"\"" >> "$conf"
|
||||
echo " - source: \"/run/miso/bootmnt/artix/$(uname -m)/desktopfs.sfs\"" >> "$conf"
|
||||
echo " sourcefs: \"squashfs\"" >> "$conf"
|
||||
echo " destination: \"\"" >> "$conf"
|
||||
}
|
||||
|
||||
configure_calamares(){
|
||||
if [[ -f /usr/bin/calamares ]];then
|
||||
unpack=$(get_cal_mode)
|
||||
if [[ "${unpack}" == 'yes' ]];then
|
||||
sed -e "/- netinstall/d" \
|
||||
-e "s|- chrootcfg|- unpackfs|" -i /etc/calamares/settings.conf
|
||||
|
||||
sed -e '$ d' -i /etc/calamares/modules/welcome.conf
|
||||
|
||||
write_unpack_conf
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
configure_sudoers_d(){
|
||||
|
Reference in New Issue
Block a user