Skip to content

Commit

Permalink
Merge branch 'endeavouros-team:calamares' into galileo-neo
Browse files Browse the repository at this point in the history
  • Loading branch information
NoaHimesaka1873 authored Feb 4, 2024
2 parents d700951 + 0026b55 commit b9303a1
Show file tree
Hide file tree
Showing 13 changed files with 78 additions and 18 deletions.
Binary file modified data/eos/branding/endeavouros/release-name-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion data/eos/branding/endeavouros/show.qml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Presentation

Timer {
id: advanceTimer
interval: 30000
interval: 60000
running: true
repeat: true
onTriggered: nextSlide()
Expand Down
Binary file modified data/eos/branding/endeavouros/side-bar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions data/eos/modules/packagechooser.conf
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,7 @@ items:
- eos-lightdm-slick-theme
- eos-qogir-icons
- feh
- file-roller
- galculator
- gthumb
- gtk-engine-murrine
- gvfs
- gvfs-afc
- gvfs-gphoto2
Expand All @@ -739,9 +736,12 @@ items:
- thunar-archive-plugin
- thunar-volman
- tumbler
- unzip
- xarchiver
- xbindkeys
- xdg-user-dirs-gtk
- xed
- xfce4-terminal
- xorg-xbacklight
- xorg-xdpyinfo
- zip
1 change: 0 additions & 1 deletion data/eos/modules/pacstrap.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,4 @@ postInstallFiles:
- "/etc/calamares/scripts/chrooted_cleaner_script.sh"
- "/etc/calamares/scripts/remove-ucode"
- "/etc/dracut.conf.d/eos-defaults.conf"
- "/etc/skel/.bashrc"
- "/etc/nsswitch.conf"
19 changes: 19 additions & 0 deletions data/eos/modules/shellprocess_user_commands.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# SPDX-FileCopyrightText: no
# SPDX-License-Identifier: CC0-1.0
#
## shellprocess_user_commands.conf
# This module runs the user specified program user_commands.bash.
#

---

dontChroot: false

script:
- command: "-touch /tmp/user_commands.bash"
- command: "-chmod +x /tmp/user_commands.bash"
- command: "-/tmp/user_commands.bash ${USER}"
timeout: 1200

i18n:
name: "Running post-installation commands specified by the user"
7 changes: 6 additions & 1 deletion data/eos/modules/users.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ autoLoginGroup: autologin

doAutoLogin: false

sudoersGroup: wheel
sudoersGroup: wheel

# If set to `false` (the default), writes a sudoers file with `(ALL)`
# so that the command can be run as any user. If set to `true`, writes
# `(ALL:ALL)` so that any user and any group can be chosen.
sudoersConfigureWithGroup: true

setRootPassword: true

Expand Down
22 changes: 14 additions & 8 deletions data/eos/scripts/chrooted_cleaner_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,8 @@ _install_extra_drivers_to_target() {
else
# Install r8168 package from the mirrors.
_install_needed_packages r8168
# Handle the r8168-lts package if LTS is installed.
[[ $(pacman -Q linux-lts 2</dev/null) ]] && _install_needed_packages r8168-lts
fi
fi
}
Expand Down Expand Up @@ -391,13 +393,17 @@ _run_if_exists_or_complain() {
fi
}

_RunUserCommands() {
local usercmdfile=/tmp/user_commands.bash
if [ -r $usercmdfile ] ; then
_c_c_s_msg info "running script $(basename $usercmdfile)"
bash $usercmdfile $NEW_USER
fi
}
#_RunUserCommands() {
# local usercmdfile=/tmp/user_commands.bash
# if [ -r $usercmdfile ] ; then
# _c_c_s_msg info "running script ${usercmdfile##*/}"
# # ad hoc validity check
# case "$NEW_USER" in
# -* | offline | online | community) _c_c_s_msg warning "${usercmdfile##*/} called with parameter '$NEW_USER'" ;;
# esac
# bash $usercmdfile $NEW_USER
# fi
#}

_misc_cleanups() {
# /etc/resolv.conf.pacnew may be unnecessary, so delete it
Expand Down Expand Up @@ -441,7 +447,7 @@ _clean_up(){
[ -r /var/log/Calamares.log ] && chown root:root /var/log/Calamares.log

# run possible user-given commands
_RunUserCommands
# _RunUserCommands # this is in calamares directly now
}

_show_info_about_installed_system() {
Expand Down
2 changes: 1 addition & 1 deletion data/eos/scripts/cleaner_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ _copy_files(){
echo "nvidia_card=$card" >> $nvidia_file
echo "nvidia_driver=$driver" >> $nvidia_file

# copy user_commands.bash
# copy user_commands.bash to target
_CopyFileToTarget /home/liveuser/user_commands.bash $target/tmp

# copy 30-touchpad.conf Xorg config file
Expand Down
18 changes: 16 additions & 2 deletions data/eos/scripts/update-mirrorlist
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,28 @@ RunCmd() {
UseBestMirrorsIfAvailable

if [ -x /usr/bin/rate-mirrors ] ; then

# ad hoc failure test for rate-mirrors because it exits with 0 always
local err_strings=("NO RESULTS TO RE-TEST"
"FAILED TO TEST SPEEDS, RETURNING UNTESTED MIRRORS"
)
local str
for str in "${err_strings[@]}" ; do
if grep "$str" $tf >/dev/null ; then
logterminal "$progname: rate-mirrors failed ($str)."
retval=1
return # now we simply use the mirrorlist in the ISO
fi
done

grep '^Server = ' $tf > $tf.tmp
mv $tf.tmp $tf
fi
}

Main() {
local VERSION="2.1" # started from 2.0!
local progname="$(basename "$0")"
local VERSION="2.2" # started from 2.0!
local progname="${0##*/}"
local mf=/etc/pacman.d/mirrorlist
local bu=/tmp/mirrorlist.bu # original mirrorlist, saved by Welcome

Expand Down
2 changes: 1 addition & 1 deletion data/eos/settings_offline.conf
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ sequence:
- luksbootkeyfile
- dracutlukscfg
- removeuser
- users
- shellprocess@fixes
- users
- networkcfg
- displaymanager
- shellprocess@initialize_pacman_offline
Expand Down
5 changes: 5 additions & 0 deletions data/eos/settings_online.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ instances:
module: shellprocess
config: shellprocess_removeucode.conf

- id: user_commands
module: shellprocess
config: shellprocess_user_commands.conf

sequence:
- show:
- welcome@online
Expand Down Expand Up @@ -73,6 +77,7 @@ sequence:
- windowsbootentry
- bootloader
- services-systemd
- shellprocess@user_commands
- preservefiles
- shellprocess@copyfiles
- umount
Expand Down
12 changes: 12 additions & 0 deletions src/modules/umount/UmountJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,18 @@ unmountTargetMounts( const QString& rootMountPoint )
.arg( m.device, m.mountPoint ) );
}
}

// Last we unmount the root
if ( CalamaresUtils::Partition::unmount( rootMountPoint, { "-lv" } ) != 0 )
{
return Calamares::JobResult::error(
QCoreApplication::translate( UmountJob::staticMetaObject.className(),
"Could not unmount target system." ),
QCoreApplication::translate( UmountJob::staticMetaObject.className(),
"The device mounted at %1 could not be unmounted." )
.arg( rootMountPoint ) );
}

return Calamares::JobResult::ok();
}

Expand Down

0 comments on commit b9303a1

Please sign in to comment.