From 0d4574eb1992a3963e77a5bd615cac864dab6c9f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 19 Apr 2013 20:02:55 +0200 Subject: Update for openSUSE 12.3 --- helper/fileutil.inc | 1 + helper/kernel.inc | 3 ++- remote/modules/dbus/dbus.build | 7 ++++--- remote/modules/pam/pam.conf.zypper | 10 ++++------ remote/modules/rsyslogd/rsyslogd.conf.zypper | 2 +- remote/modules/systemd/systemd.build | 6 +++--- remote/modules/systemd/systemd.conf.zypper | 5 +++-- remote/modules/xorg/xorg.build | 1 + remote/modules/xorg/xorg.conf.zypper | 9 ++++----- remote/rootfs/rootfs-stage32/rootfs-stage32.build | 6 ++++++ remote/rootfs/rootfs-stage32/rootfs-stage32.conf | 2 -- remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper | 4 ++-- remote/targets/stage3.2-opensuse/consolekit | 1 - 13 files changed, 31 insertions(+), 26 deletions(-) delete mode 120000 remote/targets/stage3.2-opensuse/consolekit diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 8639aea0..ba1be103 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -52,6 +52,7 @@ list_packet_files() { [ "x$LPRET" != "x0" -a "x$OPTIONAL" != "x@" ] && perror "dpkg/rpm existed with code '$LPRET' for required package ${PACKAGE}." [ "x$LPRET" != "x0" ] && pwarning "dpkg/rpm exited with code '$LPRET' for optional package ${PACKAGE}." && continue [ -z "$FILES" ] && pwarning "list_packet_files empty for packet ${PACKAGE}." && continue + pdebug "Packet $PACKAGE has $(echo $FILES | wc -w) files..." for FILE in $FILES; do [ ! -d "$FILE" ] && echo "$FILE" done diff --git a/helper/kernel.inc b/helper/kernel.inc index bae07afa..3d1e0dc0 100644 --- a/helper/kernel.inc +++ b/helper/kernel.inc @@ -21,7 +21,7 @@ KERNEL_NFS_DIR="" mount_kernel_dir() { [ -z "$KERNEL_NFS_DIR" ] || return 0 KERNEL_NFS_DIR="$(mktemp -d)" - mount -t nfs -o ro "132.230.8.228:/srv/openslx/kernel" "$KERNEL_NFS_DIR" + mount -t nfs -o ro "132.230.8.113:/srv/openslx/kernel" "$KERNEL_NFS_DIR" local RET=$? if [ "x$RET" != "x0" ]; then local BROKEN_KERNEL_NFS_DIR="${KERNEL_NFS_DIR}" @@ -142,6 +142,7 @@ fetch_source() { apt-get source linux-image-${KERNEL_VERSION} elif [ "x$PACKET_MANAGER" == "zypper" ]; then # TODO + : fi } build_kernel() { diff --git a/remote/modules/dbus/dbus.build b/remote/modules/dbus/dbus.build index 31c75fc9..7f6d663f 100644 --- a/remote/modules/dbus/dbus.build +++ b/remote/modules/dbus/dbus.build @@ -16,7 +16,8 @@ post_copy() { # quick fix to get the unit files from the package # moved them from lib/systemd to usr/lib/systemd - cd "${BUILDDIR}" - tarcopy lib/systemd "${TARGET_BUILD_DIR}"/usr - cd - &> /dev/null + #cd "${BUILDDIR}" + #tarcopy lib/systemd "${TARGET_BUILD_DIR}"/usr + #cd - &> /dev/null + : } diff --git a/remote/modules/pam/pam.conf.zypper b/remote/modules/pam/pam.conf.zypper index 1562ec7f..7c1dc5d6 100644 --- a/remote/modules/pam/pam.conf.zypper +++ b/remote/modules/pam/pam.conf.zypper @@ -3,9 +3,7 @@ REQUIRED_PACKAGES=" pam_ldap pam pam-devel nss_ldap" REQUIRED_DIRECTORIES=" /lib /usr/lib /etc/security" -REQUIRED_SYSTEM_FILES=" /etc/pam.conf - /etc/login.defs - /etc/nsswitch.conf - /etc/securetty - /etc/default/locale - /lib/security" +REQUIRED_SYSTEM_FILES=" /etc/login.defs + /etc/securetty + /lib/security" + diff --git a/remote/modules/rsyslogd/rsyslogd.conf.zypper b/remote/modules/rsyslogd/rsyslogd.conf.zypper index c41d7922..e826768a 100644 --- a/remote/modules/rsyslogd/rsyslogd.conf.zypper +++ b/remote/modules/rsyslogd/rsyslogd.conf.zypper @@ -1,2 +1,2 @@ REQUIRED_DIRECTORIES=" /etc/rsyslog.d - /lib/rsyslog" + /usr/lib/rsyslog" diff --git a/remote/modules/systemd/systemd.build b/remote/modules/systemd/systemd.build index ee74d53a..fb56f231 100644 --- a/remote/modules/systemd/systemd.build +++ b/remote/modules/systemd/systemd.build @@ -8,9 +8,9 @@ fetch_source () { build () { #build libkmod cd "${MODULE_DIR}/src/$LIBKMOD_VERSION" - ./configure - make || perror "make failed." - make install || perror "make install failed." + ./configure || perror "./configure kmod failed." + make || perror "kmod make failed." + make install || perror "kmod make install failed." cd - &> /dev/null #build systemd diff --git a/remote/modules/systemd/systemd.conf.zypper b/remote/modules/systemd/systemd.conf.zypper index d76d008e..8fd38a30 100644 --- a/remote/modules/systemd/systemd.conf.zypper +++ b/remote/modules/systemd/systemd.conf.zypper @@ -1,11 +1,12 @@ -VERSION=systemd-197 +VERSION=systemd-201 URL=http://www.freedesktop.org/software/systemd/${VERSION}.tar.xz REQUIRED_DEPENDENCIES=" intltool gperf pkg-config libcap-devel libudev-devel - dbus-1-devel" + dbus-1-devel + libxslt-tools" REQUIRED_BINARIES=" hostnamectl journalctl localectl diff --git a/remote/modules/xorg/xorg.build b/remote/modules/xorg/xorg.build index 34750ef5..5b1b0847 100644 --- a/remote/modules/xorg/xorg.build +++ b/remote/modules/xorg/xorg.build @@ -10,6 +10,7 @@ build() { list_packet_files >> "$COPYLIST" tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + pdebug .... } post_copy() { diff --git a/remote/modules/xorg/xorg.conf.zypper b/remote/modules/xorg/xorg.conf.zypper index 8d02136c..d9259257 100644 --- a/remote/modules/xorg/xorg.conf.zypper +++ b/remote/modules/xorg/xorg.conf.zypper @@ -3,15 +3,15 @@ REQUIRED_PACKAGES=" xorg-x11 xorg-x11-driver-input xorg-x11-driver-video xorg-x11-driver-video-nouveau - xorg-x11-driver-video-radeonhd + xf86-input-vmmouse + xf86-input-wacom xkeyboard-config - dejavu + dejavu-fonts kdm-branding-openSUSE" REQUIRED_BINARIES=" Xorg gtf cvt X - xkbcomp xkbvleds xkbprint setxkbmap @@ -19,8 +19,7 @@ REQUIRED_BINARIES=" Xorg xkbbell xkbevd vmmouse_detect" -REQUIRED_DIRECTORIES=" /lib/udev - /usr/lib +REQUIRED_DIRECTORIES=" /usr/lib /usr/share/X11 /usr/share/fonts" REQUIRED_FILES="/var/adm/fillup-templates/sysconfig.displaymanager-kdm" diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build index a14bdfa4..8b056e1b 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build @@ -4,6 +4,12 @@ fetch_source() { } build() { + if [ ! -z "$REQUIRED_PACKAGES" ]; then + COPYLIST="list_dpkg_output" + [ -e "${COPYLIST}" ] && rm "${COPYLIST}" + list_packet_files >> "${COPYLIST}" + tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" + fi FILELIST="list_binaries_and_files" [ -e "${FILELIST}" ] && rm "${FILELIST}" diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf index 15bd0908..1ff35bcb 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf @@ -48,8 +48,6 @@ REQUIRED_FILES=" /etc/environment /etc/localtime /etc/login.defs /etc/securetty - /etc/default/locale - /etc/default/aufs /etc/protocols /etc/services /etc/networks diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper index ec489fd1..a8a8c1b3 100644 --- a/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper +++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.conf.zypper @@ -1,4 +1,6 @@ +pinfo "If aufs install fails, run zypper addrepo http://jftp.inai.de/openSUSE_12.3/ j.eng-i586" REQUIRED_DEPENDENCIES="nfs-client aufs squashfs" +REQUIRED_PACKAGES="timezone" REQUIRED_BINARIES=" bash agetty cat @@ -47,8 +49,6 @@ REQUIRED_FILES=" /etc/environment /etc/login.defs /etc/nsswitch.conf /etc/securetty - /etc/default/locale - /etc/default/aufs /etc/protocols /etc/services /etc/networks diff --git a/remote/targets/stage3.2-opensuse/consolekit b/remote/targets/stage3.2-opensuse/consolekit deleted file mode 120000 index 261968c7..00000000 --- a/remote/targets/stage3.2-opensuse/consolekit +++ /dev/null @@ -1 +0,0 @@ -../../modules/consolekit \ No newline at end of file -- cgit v1.2.3-55-g7522 From ce852b70f719c9bc1707838f7440e3b4019c6f69 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 22 Apr 2013 18:18:11 +0200 Subject: Fix xorg for openSUSE 12.3 --- remote/modules/xorg/xorg.conf.zypper | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/remote/modules/xorg/xorg.conf.zypper b/remote/modules/xorg/xorg.conf.zypper index d9259257..22a6bdd8 100644 --- a/remote/modules/xorg/xorg.conf.zypper +++ b/remote/modules/xorg/xorg.conf.zypper @@ -3,9 +3,25 @@ REQUIRED_PACKAGES=" xorg-x11 xorg-x11-driver-input xorg-x11-driver-video xorg-x11-driver-video-nouveau + xf86-video-vmware + xf86-video-ati + xf86-video-nv + xf86-video-intel + xf86-video-i128 + xf86-video-geode + xf86-video-vesa + xf86-video-fbdev + xf86-video-modesetting xf86-input-vmmouse xf86-input-wacom + xf86-input-evdev + xf86-input-joystick + xf86-input-keyboard + xf86-input-mouse + xf86-input-synaptics + xf86-input-void xkeyboard-config + xkbcomp dejavu-fonts kdm-branding-openSUSE" REQUIRED_BINARIES=" Xorg @@ -20,6 +36,7 @@ REQUIRED_BINARIES=" Xorg xkbevd vmmouse_detect" REQUIRED_DIRECTORIES=" /usr/lib + /usr/bin /usr/share/X11 /usr/share/fonts" REQUIRED_FILES="/var/adm/fillup-templates/sysconfig.displaymanager-kdm" -- cgit v1.2.3-55-g7522 From 680a8cd722b9cd59fd9ac2520b131756e1823444 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 22 Apr 2013 19:24:48 +0200 Subject: "Fix" rsyslogd on suse (systemctl status still says it's not running when it really is) Might be broken on ubuntu now - the whole module is a mess really... --- remote/modules/rsyslogd/rsyslogd.build | 30 ++++++++++------------------ remote/modules/rsyslogd/rsyslogd.conf.zypper | 6 +++++- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/remote/modules/rsyslogd/rsyslogd.build b/remote/modules/rsyslogd/rsyslogd.build index 43aa112d..cee5c7ed 100644 --- a/remote/modules/rsyslogd/rsyslogd.build +++ b/remote/modules/rsyslogd/rsyslogd.build @@ -3,30 +3,22 @@ fetch_source() { } build() { + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" - FILELIST="list_binaries_and_files" - BIN_LOCATION=$(which rsyslogd) - if [ ! -z ${BIN_LOCATION} -a -e ${BIN_LOCATION} ]; - then - get_link_chain "${BIN_LOCATION}" >> "${FILELIST}" - else - perror "${BIN} not found on the system! Please install it." - exit 1 - fi - - for ENTRY in ${REQUIRED_FILES} ${REQUIRED_DIRECTORIES}; do - get_link_chain "${ENTRY}" >> "${FILELIST}" - done - - tarcopy "$(cat ${FILELIST}|sort -u)" "${MODULE_BUILD_DIR}" + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" + return 0 } -post_copy() { +post_copy() { + # pwd = module's build dir mkdir -p "${TARGET_BUILD_DIR}"/var/spool/rsyslog - - [ -e /lib/systemd/system/rsyslog.service ] \ - && cp /lib/systemd/system/rsyslog.service "${TARGET_BUILD_DIR}"/etc/systemd/system/ + + local RSL="$(find /usr/lib/ /lib/ -name rsyslog.service | head -1)" + [ -z "$RSL" -o ! -e "$RSL" ] && perror "rsyslog.service not found on vorlage" + cp -L "$RSL" "$TARGET_BUILD_DIR/etc/systemd/system/" sed -i 's/\/bin\/systemctl/-\/usr\/bin\/systemctl/g' "${TARGET_BUILD_DIR}"/etc/systemd/system/rsyslog.service sed -i 's/^Before=udev/#&/' "${TARGET_BUILD_DIR}"/etc/systemd/system/rsyslog.service diff --git a/remote/modules/rsyslogd/rsyslogd.conf.zypper b/remote/modules/rsyslogd/rsyslogd.conf.zypper index e826768a..a70940e8 100644 --- a/remote/modules/rsyslogd/rsyslogd.conf.zypper +++ b/remote/modules/rsyslogd/rsyslogd.conf.zypper @@ -1,2 +1,6 @@ +REQUIRED_BINARIES=" rsyslogd + rsyslog-service-prepare" +REQUIRED_PACKAGES=" rsyslog" REQUIRED_DIRECTORIES=" /etc/rsyslog.d - /usr/lib/rsyslog" + /usr/lib/rsyslog + /var/run" -- cgit v1.2.3-55-g7522 From bc4ca83f83b67cbcc546d0b974b9282cb06f8c13 Mon Sep 17 00:00:00 2001 From: sr Date: Tue, 23 Apr 2013 17:18:40 +0200 Subject: update strace parsing util --- useful/ultrastrace.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/useful/ultrastrace.php b/useful/ultrastrace.php index 46df34a5..7ec755e9 100755 --- a/useful/ultrastrace.php +++ b/useful/ultrastrace.php @@ -35,22 +35,22 @@ foreach ($argv as $fname) { $lastLine = $line; $lastTime = $time; } - if (preg_match('#^(\d+:\d+:\d+\.\d+\s+)?open\("(?[^"]*[^"]*[^/])".*\)\s+=\s+(?\S+)(\s+(?\S+)\s+|$)#', $line, $out) < 1) continue; + if (preg_match('#^(\d+:\d+:\d+\.\d+\s+)?(?open|execve)\("(?[^"]*[^"]*[^/])".*\)\s+=\s+(?\S+)(\s+(?\S+)\s+|$)#', $line, $out) < 1) continue; //echo "Match: {$out['lib']} -> {$out['ret']} ({$out['err']})\n"; $file = basename($out['lib']); $file = preg_replace('/\.so(\.\d+)*$/', '', $file); if ($out['ret'] < 0) { if (isset($found[$file])) { - $found[$file][] = ':-( ' . $out['lib'] . ' *** (' . (isset($out['err']) ? $out['err'] : 'Unknown Error') . ')'; + $found[$file][] = ':-( ' . $out['lib'] . ' *** (' . (isset($out['err']) ? $out['err'] : 'Unknown Error') . ') (' . $out['action'] . ')'; } else { - $failed[$file][] = ':-( ' . $out['lib'] . ' *** (' . (isset($out['err']) ? $out['err'] : 'Unknown Error') . ')'; + $failed[$file][] = ':-( ' . $out['lib'] . ' *** (' . (isset($out['err']) ? $out['err'] : 'Unknown Error') . ') (' . $out['action'] . ')'; } } else { if (isset($failed[$file])) { $found[$file] = $failed[$file]; unset($failed[$file]); } - $found[$file][] = ':-) ' . $out['lib']; + $found[$file][] = ':-) ' . $out['lib'] . ' (' . $out['action'] . ')'; } } fclose($fh); -- cgit v1.2.3-55-g7522 From 78605f80f5f488e4f56e0e78cd6d3e7b7675a4a4 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 24 Apr 2013 12:27:21 +0200 Subject: strace tool update --- useful/ultrastrace.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/useful/ultrastrace.php b/useful/ultrastrace.php index 7ec755e9..cb7352e0 100755 --- a/useful/ultrastrace.php +++ b/useful/ultrastrace.php @@ -24,7 +24,7 @@ foreach ($argv as $fname) { $lineNo++; $line = fgets($fh); // open("/lib/x86_64-linux-gnu/tls/x86_64/libkdeui.so.5", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory) - if (preg_match('#^(?\d+):(?\d+):(?\d+\.\d+)\s#', $line, $out) >= 1) { + if (preg_match('#^(?\d+):(?\d+):(?\d+(\.\d+)?)\s#', $line, $out) >= 1) { $time = parseTime($out); if (isset($lastLine)) { if ($time < $lastTime) $lastTime -= 86400; @@ -35,7 +35,7 @@ foreach ($argv as $fname) { $lastLine = $line; $lastTime = $time; } - if (preg_match('#^(\d+:\d+:\d+\.\d+\s+)?(?open|execve)\("(?[^"]*[^"]*[^/])".*\)\s+=\s+(?\S+)(\s+(?\S+)\s+|$)#', $line, $out) < 1) continue; + if (preg_match('#^(\d+:\d+:\d+\.?\d*\s+)?(?open|openat|execve)\("(?[^"]*[^"]*[^/])".*\)\s+=\s+(?\S+)(\s+(?\S+)\s+|$)#', $line, $out) < 1) continue; //echo "Match: {$out['lib']} -> {$out['ret']} ({$out['err']})\n"; $file = basename($out['lib']); $file = preg_replace('/\.so(\.\d+)*$/', '', $file); -- cgit v1.2.3-55-g7522 From 7a823419aecacb9ce36d0370807ab6837a39bf8f Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 24 Apr 2013 15:17:40 +0200 Subject: suse conf fixes --- remote/modules/dbus/dbus.conf.zypper | 3 ++- remote/modules/kdm/kdm.conf.zypper | 6 +++++- remote/modules/pam/pam.conf.zypper | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/remote/modules/dbus/dbus.conf.zypper b/remote/modules/dbus/dbus.conf.zypper index db7183c5..e34e47d8 100644 --- a/remote/modules/dbus/dbus.conf.zypper +++ b/remote/modules/dbus/dbus.conf.zypper @@ -5,5 +5,6 @@ REQUIRED_BINARIES=" dbus-cleanup-sockets dbus-monitor dbus-send dbus-daemon-launch-helper" -REQUIRED_DIRECTORIES=" /etc/dbus-1" +REQUIRED_DIRECTORIES=" /etc/dbus-1 + /usr/lib/systemd" REQUIRED_FILES="" diff --git a/remote/modules/kdm/kdm.conf.zypper b/remote/modules/kdm/kdm.conf.zypper index 51e73fbf..23034356 100644 --- a/remote/modules/kdm/kdm.conf.zypper +++ b/remote/modules/kdm/kdm.conf.zypper @@ -10,5 +10,9 @@ REQUIRED_DIRECTORIES=" /etc/dbus-1 REQUIRED_FILES="" REQUIRED_LIBRARIES="" #non-standard vars -REQUIRED_SYSTEM_FILES="" +REQUIRED_SYSTEM_FILES=" /usr/share/icons/oxygen/16x16/actions/system-reboot.png + /usr/share/icons/oxygen/16x16/actions/system-shutdown.png + /usr/share/icons/oxygen/16x16/actions/dialog-cancel.png + /usr/share/icons/oxygen/index.theme + /usr/share/icons/default.kde4/index.theme" diff --git a/remote/modules/pam/pam.conf.zypper b/remote/modules/pam/pam.conf.zypper index 7c1dc5d6..311b7f6c 100644 --- a/remote/modules/pam/pam.conf.zypper +++ b/remote/modules/pam/pam.conf.zypper @@ -1,5 +1,5 @@ -REQUIRED_DEPENDENCIES=" pam_ldap pam pam-devel nss_ldap" -REQUIRED_PACKAGES=" pam_ldap pam pam-devel nss_ldap" +REQUIRED_DEPENDENCIES=" pam_ldap pam pam-devel nss_ldap nss-pam-ldapd pam-modules" +REQUIRED_PACKAGES=" pam_ldap pam pam-devel nss_ldap nss-pam-ldapd pam-modules" REQUIRED_DIRECTORIES=" /lib /usr/lib /etc/security" -- cgit v1.2.3-55-g7522 From 3b36938a3be1b397471dd41224a7febd3a4d2f7b Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Wed, 24 Apr 2013 16:50:40 +0200 Subject: add /lib/systemd --- remote/modules/dbus/dbus.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/remote/modules/dbus/dbus.conf b/remote/modules/dbus/dbus.conf index a8c97d9c..4a1bc6a5 100644 --- a/remote/modules/dbus/dbus.conf +++ b/remote/modules/dbus/dbus.conf @@ -5,5 +5,6 @@ REQUIRED_BINARIES=" dbus-cleanup-sockets dbus-monitor dbus-send dbus-daemon-launch-helper" -REQUIRED_DIRECTORIES=" /etc/dbus-1" +REQUIRED_DIRECTORIES=" /etc/dbus-1 + /lib/systemd" REQUIRED_FILES=" /etc/default/dbus" -- cgit v1.2.3-55-g7522 From 8e88fd0243b401205541025df01ff18dbe37e943 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Wed, 24 Apr 2013 16:52:40 +0200 Subject: add post_process_target function, (first post process moves /lib/systemd to /etc/systemd) --- remote/setup_target | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/remote/setup_target b/remote/setup_target index e004d8bd..3152cf04 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -172,6 +172,9 @@ generate_target() { process_module "$1" shift done + + post_process_target + pinfo "Target completed. Total size: $(du -bsh "${TARGET_BUILD_DIR}" | awk 'END {print $1}')" TOOL_STR="" } @@ -233,6 +236,22 @@ process_module() { fi } +post_process_target() { + +local TOOL_STR="$TOOL_STR post_process_target:" + +#move systemd files from /lib to /etc/lib +pinfo "move systemd files from /lib/systemd to /etc/systemd" + +if [ -d "${TARGET_BUILD_DIR}/lib" ]; then + cd "${TARGET_BUILD_DIR}/lib" + tarcopy "systemd" "${TARGET_BUILD_DIR}/etc" + cd - &> /dev/null + rm -r "${TARGET_BUILD_DIR}/lib/systemd" +fi + +} + clean_modules() { TARGET=$1 -- cgit v1.2.3-55-g7522 From 835a6bec88531d82477da8f1ce3b592e0eb8d966 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Wed, 24 Apr 2013 16:53:32 +0200 Subject: delete plymouth/data/etc/systemd... --- .../plymouth/data/etc/systemd/system/plymouth-halt.service | 11 ----------- .../plymouth/data/etc/systemd/system/plymouth-kexec.service | 11 ----------- .../data/etc/systemd/system/plymouth-poweroff.service | 11 ----------- .../data/etc/systemd/system/plymouth-quit-wait.service | 8 -------- .../plymouth/data/etc/systemd/system/plymouth-quit.service | 8 -------- .../data/etc/systemd/system/plymouth-read-write.service | 9 --------- .../data/etc/systemd/system/plymouth-reboot.service | 11 ----------- .../plymouth/data/etc/systemd/system/plymouth-start.service | 13 ------------- .../etc/systemd/system/systemd-ask-password-plymouth.path | 13 ------------- .../systemd/system/systemd-ask-password-plymouth.service | 12 ------------ remote/targets/stage32/vmchooser | 1 - 11 files changed, 108 deletions(-) delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-halt.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-kexec.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-poweroff.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-quit-wait.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-quit.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-read-write.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-reboot.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/plymouth-start.service delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.path delete mode 100644 remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.service delete mode 120000 remote/targets/stage32/vmchooser diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-halt.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-halt.service deleted file mode 100644 index d01ba9b8..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-halt.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Show Plymouth Halt Screen -After=getty@tty1.service prefdm.service plymouth-start.service -Before=halt.service -DefaultDependencies=no -ConditionKernelCommandLine=!plymouth.enable=0 - -[Service] -ExecStart=/sbin/plymouthd --mode=shutdown --attach-to-session -ExecStartPost=-/bin/plymouth show-splash -Type=forking diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-kexec.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-kexec.service deleted file mode 100644 index 1fe6e47f..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-kexec.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Show Plymouth Reboot with kexec Screen -After=getty@tty1.service prefdm.service plymouth-start.service -Before=kexec.service -DefaultDependencies=no -ConditionKernelCommandLine=!plymouth.enable=0 - -[Service] -ExecStart=/sbin/plymouthd --mode=shutdown --attach-to-session -ExecStartPost=-/bin/plymouth show-splash -Type=forking diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-poweroff.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-poweroff.service deleted file mode 100644 index 49742f6e..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-poweroff.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Show Plymouth Power Off Screen -After=getty@tty1.service prefdm.service plymouth-start.service -Before=poweroff.service -DefaultDependencies=no -ConditionKernelCommandLine=!plymouth.enable=0 - -[Service] -ExecStart=/sbin/plymouthd --mode=shutdown --attach-to-session -ExecStartPost=-/bin/plymouth show-splash -Type=forking diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-quit-wait.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-quit-wait.service deleted file mode 100644 index 56af45a7..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-quit-wait.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Wait for Plymouth Boot Screen to Quit -After=rc-local.service plymouth-start.service systemd-user-sessions.service - -[Service] -ExecStart=-/bin/plymouth --wait -Type=oneshot -TimeoutSec=20 diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-quit.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-quit.service deleted file mode 100644 index be3c1888..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-quit.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Terminate Plymouth Boot Screen -After=rc-local.service plymouth-start.service systemd-user-sessions.service - -[Service] -ExecStart=-/bin/plymouth quit -Type=oneshot -TimeoutSec=20 diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-read-write.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-read-write.service deleted file mode 100644 index caa3973b..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-read-write.service +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Tell Plymouth To Write Out Runtime Data -DefaultDependencies=no -After=local-fs.target -Before=sysinit.target - -[Service] -ExecStart=-/bin/plymouth update-root-fs --read-write -Type=oneshot diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-reboot.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-reboot.service deleted file mode 100644 index dbedd00d..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-reboot.service +++ /dev/null @@ -1,11 +0,0 @@ -[Unit] -Description=Show Plymouth Reboot Screen -After=getty@tty1.service prefdm.service plymouth-start.service -Before=reboot.service -DefaultDependencies=no -ConditionKernelCommandLine=!plymouth.enable=0 - -[Service] -ExecStart=/sbin/plymouthd --mode=shutdown --attach-to-session -ExecStartPost=-/bin/plymouth show-splash -Type=forking diff --git a/remote/modules/plymouth/data/etc/systemd/system/plymouth-start.service b/remote/modules/plymouth/data/etc/systemd/system/plymouth-start.service deleted file mode 100644 index 09243001..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/plymouth-start.service +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Show Plymouth Boot Screen -DefaultDependencies=no -Wants=systemd-ask-password-plymouth.path -After=systemd-vconsole-setup.service systemd-udev-settle.service -Before=systemd-ask-password-plymouth.service -ConditionKernelCommandLine=!plymouth.enable=0 -ConditionPathExists=!/run/plymouth/pid - -[Service] -ExecStart=/sbin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session -ExecStartPost=-/bin/udevadm settle --timeout=30 --exit-if-exists=/sys/class/drm/card0/dev;-/bin/udevadm settle --timeout=30 --exit-if-exists=/sys/class/graphics/fb0/dev; -/bin/plymouth show-splash -Type=forking diff --git a/remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.path b/remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.path deleted file mode 100644 index c2ee4206..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.path +++ /dev/null @@ -1,13 +0,0 @@ -[Unit] -Description=Forward Password Requests to Plymouth Directory Watch -Documentation=http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents -DefaultDependencies=no -Conflicts=shutdown.target -After=plymouth-start.service -Before=basic.target shutdown.target -ConditionKernelCommandLine=!plymouth.enable=0 -ConditionPathExists=/run/plymouth/pid - -[Path] -DirectoryNotEmpty=/run/systemd/ask-password -MakeDirectory=yes diff --git a/remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.service b/remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.service deleted file mode 100644 index aa9ffc21..00000000 --- a/remote/modules/plymouth/data/etc/systemd/system/systemd-ask-password-plymouth.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Forward Password Requests to Plymouth -Documentation=http://www.freedesktop.org/wiki/Software/systemd/PasswordAgents -DefaultDependencies=no -Conflicts=shutdown.target -After=plymouth-start.service -Before=shutdown.target -ConditionKernelCommandLine=!plymouth.enable=0 -ConditionPathExists=/run/plymouth/pid - -[Service] -ExecStart=/bin/systemd-tty-ask-password-agent --watch --plymouth diff --git a/remote/targets/stage32/vmchooser b/remote/targets/stage32/vmchooser deleted file mode 120000 index d918fbdc..00000000 --- a/remote/targets/stage32/vmchooser +++ /dev/null @@ -1 +0,0 @@ -../../modules/vmchooser \ No newline at end of file -- cgit v1.2.3-55-g7522