From 5c3827558ded566a5b23b32ab7d3df175ceaf777 Mon Sep 17 00:00:00 2001 From: Stefan Wold Date: Wed, 9 Jan 2013 21:54:21 +0100 Subject: [PATCH 1/2] systemd: Version bumped to 197 This release brings a new network interface naming scheme with udev. Added a check and question for people still using legacy interface names to switch to the new scheme, defaults to 'n' for unattended updates. --- system/systemd/BUILD | 19 ++++++++++--------- system/systemd/DEPENDS | 2 +- system/systemd/DETAILS | 6 +++--- system/systemd/POST_INSTALL | 3 +++ 4 files changed, 17 insertions(+), 13 deletions(-) diff --git a/system/systemd/BUILD b/system/systemd/BUILD index ca6cad12d..65ffba427 100644 --- a/system/systemd/BUILD +++ b/system/systemd/BUILD @@ -1,9 +1,10 @@ ( - OPTS+=" --with-distro=other \ - --libexecdir=/usr/lib \ + OPTS+=" --libexecdir=/usr/lib \ --enable-split-usr \ - --disable-tcpwrap" + --disable-tcpwrap \ + --with-kbd-loadkeys=/usr/bin/loadkeys \ + --with-kbd-setfont=/usr/bin/setfont" # a not existing hostname is set to lunar. [ -f /etc/hostname ] || install -m 0644 -o root -g root $SCRIPT_DIRECTORY/files/hostname /etc/hostname && @@ -19,9 +20,6 @@ # the case in lunar, so we switch it to root. sedit "s:0775 root lock:0775 root root:" tmpfiles.d/legacy.conf && - # loadkeys and setfont are in /usr/bin - sedit 's:"/bin/loadkeys:"/usr/bin/loadkeys:;s:"/bin/setfont:"/usr/bin/setfont:' Makefile.am Makefile.in && - default_config && make && prepare_install && @@ -31,11 +29,14 @@ lrm --upgrade udev fi && - # systemd is no longer PSAFE during the make install phase due to install order of some libs (systemd-journal). - # Please check if this is fixed with the next release. - unset MAKES && make install && + # Disable new naming scheme + if [[ "$NEW_NAME_SCHEME" == "n" && ! -e /etc/udev/rules.d/80-net-name-slot.rules ]]; then + echo "Disabled the new network interface naming scheme" + ln -sf /dev/null /etc/udev/rules.d/80-net-name-slot.rules + fi && + # Always install the legacy.conf file even if SysV compatibility isn't enabled install -m 0644 -o root -g root tmpfiles.d/legacy.conf /usr/lib/tmpfiles.d diff --git a/system/systemd/DEPENDS b/system/systemd/DEPENDS index ced040789..d72a54ede 100644 --- a/system/systemd/DEPENDS +++ b/system/systemd/DEPENDS @@ -8,4 +8,4 @@ depends intltool depends gperf optional_depends "cryptsetup" "--enable-libcryptsetup" "--disable-libcryptsetup" "for Device-mapper crypto encryption" -optional_depends "Linux-PAM" "--with-pamlibdir=/lib/security" "--disable-pam" +optional_depends "Linux-PAM" "--with-pamlibdir=/lib/security" "--disable-pam" "for PAM support" diff --git a/system/systemd/DETAILS b/system/systemd/DETAILS index ea6987267..a8971c52a 100644 --- a/system/systemd/DETAILS +++ b/system/systemd/DETAILS @@ -1,11 +1,11 @@ MODULE=systemd - VERSION=196 + VERSION=197 SOURCE=$MODULE-$VERSION.tar.xz SOURCE_URL=http://www.freedesktop.org/software/systemd - SOURCE_VFY=sha1:65f6844c2d2a5e6b7ed1f77bb9f457b04774c74f + SOURCE_VFY=sha1:1b0b4e0fa97c9cf143f17838aa2da34d980d86d4 WEB_SITE=http://www.freedesktop.org/wiki/Software/systemd ENTERED=20100919 - UPDATED=20121231 + UPDATED=20130109 SHORT="A system and program management daemon" cat << EOF diff --git a/system/systemd/POST_INSTALL b/system/systemd/POST_INSTALL index cfc2e0872..e04c9635a 100644 --- a/system/systemd/POST_INSTALL +++ b/system/systemd/POST_INSTALL @@ -1,6 +1,9 @@ # generate the machine id /usr/bin/systemd-machine-id-setup +# Remove obsolete 70-persistent-net.rules +[ -f /etc/udev/rules.d/70-persistent-net.rules ] && rm /etc/udev/rules.d/70-persistent-net.rules + # systemd readyness checks if [ ! -f /etc/machine-id ]; then SYSTEMD_ERROR=1 From 34883ffc5c910e40508a18a19f479ff73f45d482 Mon Sep 17 00:00:00 2001 From: Stefan Wold Date: Wed, 9 Jan 2013 21:58:14 +0100 Subject: [PATCH 2/2] systemd: missed configure file --- system/systemd/CONFIGURE | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 system/systemd/CONFIGURE diff --git a/system/systemd/CONFIGURE b/system/systemd/CONFIGURE new file mode 100644 index 000000000..c87bf1fad --- /dev/null +++ b/system/systemd/CONFIGURE @@ -0,0 +1,9 @@ +NSCHEME=$(get_module_config NEW_NAME_SCHEME) +if [ -z "$NSCHEME" ] && ip link | egrep -q '^[0-9]*: (eth|wlan|ppp|ath|tun|ra|usb|br)[0-9]+[^>]*[<,]UP[,>]'; then + message "${PROBLEM_COLOR}WARNING:${MESSAGE_COLOR} You are still using the old network interface naming scheme." + message "It is recommended to switch to the new naming scheme. Please note" + message "that reconfiguration of your network interfaces using the new" + message "device names are required!\n" + + mquery NEW_NAME_SCHEME "Enable new naming scheme for network interfaces (RECOMMENDED)?" n +fi