Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bee-files/scripts/update-systemd-from-27-to-238.sh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
executable file
51 lines (40 sloc)
1.68 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
umask 022 | |
set -x | |
if ! { hostconfig mx64; }; then | |
echo "Please update the tag to *mx64* in `hostconfig` first." | |
exit 1 | |
fi | |
if { systemd --version > /dev/null 2>&1; }; then | |
echo "systemd 238 is already running. Nothing to do." | |
exit 0 | |
fi | |
bee remove sysvinit-2.88dsf-2.x86_64 udev-164-2.x86_64 | |
bee install -f systemd-238-0 | |
bee update -f dbus-1.12.4-0 | |
systemctl daemon-reexec | |
systemctl restart dbus.service # restarts GDM | |
#bee remove consolekit-0.4.4-0.x86_64 # needed by GDM to log in | |
#bee update fhs-3.0 # good idea? Removes /var/run? | |
bee update -f util-linux-2.31.1-1 xorg-server pulseaudio libgudev libusb xf86-input-evdev upower xf86-video-amdgpu xf86-video-nouveau gvfs-1.24.0-3 gnome-session-3.4.1-2 libatasmart qt5 udisks vlc-3.0.0-0 qtlinks | |
bee remove systemd-27-0.x86_64 | |
bee update -f systemd-238-0 | |
bee install udev_compat-1.0-0 qtwebkit-5.9.0-0 | |
bee install js-38.2.1-0 | |
bee update polkit | |
systemctl daemon-reload | |
systemctl disable console-kit-daemon | |
# systemctl restart polkit.service # we are going to reboot anyway | |
sed -i '/pam_ck_connector.so/d' /etc/pam.d/system-auth | |
sed -i 's/required pam_systemd.so create-session=1 kill-user=0 kill-session=0/optional pam_systemd.so/' /etc/pam.d/system-auth | |
echo "You can migrate to system-networkd." | |
systemctl daemon-reload | |
mkdir -p /etc/systemd/resolved.conf.d/ | |
echo -e "[Resolve]\\nDomains=molgen.mpg.de" >> /etc/systemd/resolved.conf.d/domains.conf | |
echo -e "[Resolve]\\nLLMNR=no" >> /etc/systemd/resolved.conf.d/disable-llmnr.conf | |
systemctl restart systemd-resolved | |
ln -sf /etc/sysctl.conf /etc/sysctl.d/99-sysctl.conf | |
# just to be sure | |
systemctl stop systemd-networkd | |
systemctl disable systemd-networkd | |
systemctl disable systemd-timesyncd |