From 303e253521bd7ed38ea45ab895bb7a075d436f16ab4ccb97fb2519e89c723490 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Fri, 22 Apr 2011 17:35:38 +0000 Subject: [PATCH] version 25 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=133 --- ...splash-handling-for-password-dialogs.patch | 18 +- systemd-20.tar.bz2 | 3 - systemd-25.tar.bz2 | 3 + systemd.changes | 212 ++++++++++++++++++ systemd.spec | 21 +- 5 files changed, 236 insertions(+), 21 deletions(-) delete mode 100644 systemd-20.tar.bz2 create mode 100644 systemd-25.tar.bz2 diff --git a/0001-Add-bootsplash-handling-for-password-dialogs.patch b/0001-Add-bootsplash-handling-for-password-dialogs.patch index a3907589..e4bdce2b 100644 --- a/0001-Add-bootsplash-handling-for-password-dialogs.patch +++ b/0001-Add-bootsplash-handling-for-password-dialogs.patch @@ -6,24 +6,21 @@ Subject: [PATCH] Add bootsplash handling for password dialogs openSUSE uses bootsplash.org, so add a crude handling for setting the splash screen to verbose when a password is asked... --- - src/ask-password-api.c | 22 ++++++++++++++++++++++ - 1 files changed, 22 insertions(+), 0 deletions(-) - diff --git a/src/ask-password-api.c b/src/ask-password-api.c -index 9f7023e..2023441 100644 +index da967ab..b89bcea 100644 --- a/src/ask-password-api.c +++ b/src/ask-password-api.c -@@ -47,6 +47,9 @@ int ask_password_tty( - int r, ttyfd = -1, notify = -1; - struct pollfd pollfd[2]; +@@ -62,6 +62,9 @@ int ask_password_tty( bool reset_tty = false; + bool silent_mode = false; + bool dirty = false; + bool splash_silent = false; + FILE *procsplash = NULL; + char *line = NULL; enum { POLL_TTY, POLL_INOTIFY -@@ -90,6 +93,19 @@ int ask_password_tty( +@@ -105,6 +108,19 @@ int ask_password_tty( } reset_tty = true; @@ -43,7 +40,7 @@ index 9f7023e..2023441 100644 } zero(pollfd); -@@ -201,6 +217,12 @@ finish: +@@ -239,6 +255,12 @@ finish: close_nointr_nofail(ttyfd); } @@ -56,6 +53,3 @@ index 9f7023e..2023441 100644 return r; } --- -1.7.3.1 - diff --git a/systemd-20.tar.bz2 b/systemd-20.tar.bz2 deleted file mode 100644 index 6912035e..00000000 --- a/systemd-20.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d743c42b307d26ce9c7e8848a1c692e572cc43dc308884ef7a71215b57650ae -size 781932 diff --git a/systemd-25.tar.bz2 b/systemd-25.tar.bz2 new file mode 100644 index 00000000..81bb6844 --- /dev/null +++ b/systemd-25.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4498a4fe0185964127dad0d07806a1f0c7728d29013ff6d706c914ef598d798 +size 810486 diff --git a/systemd.changes b/systemd.changes index 9b36e26c..711cf7b8 100644 --- a/systemd.changes +++ b/systemd.changes @@ -1,3 +1,215 @@ +------------------------------------------------------------------- +Thu Apr 21 04:39:57 CEST 2011 - kay.sievers@novell.com + +- version 25 + - mount: Allow creating mount units for /var/lib/nfs/rpc_pipefs + and /proc/fs/nfsd. + - socket: support ListeSpecial= sockets + - vconsole: don't set console font/keymap if settings are empty + - nspawn: don't fail when we receive SIGCHLD + - cgroup: don't accidentaly trim on reload + - units: set capability bounding set for syslog services + - socket: log more information about invalid poll events + - man: fix specification of default timeouts + - mount,crypto: rework meaning of noauto/nofail + - fsck: don't fsck against basic.target in order to properly + allow automount /home + - manager: when running in test mode, do not write generated + unit files to /run/systemd/generator + - mount: properly parse timeouts options in the middle of + the string + - hostnamed: drop all caps but CAP_SYS_ADMIN + - execute: when we run as PID 1 the kernel doesn't give us + CAP_SETPCAP by default. Get that temporarily when dropping + capabilities for good + - mount: make device timeout configurable + - cryptsetup: do not order crypto DM devices against the + cryptsetup service + - socket: reuse existing FIFOs + - socket: guarantee order in which sockets are passed to be + the one of the configuration file + - systemctl: always consider unit files with no + [Install] section but stored in /lib enabled + - job: also print status messages when we successfully started + a unit + - hostnamed: add reference to SMBIOS specs + - man: runlevel 5 is usually more comprehensive, so use it + instead of 3 to detect whether a sysv service is enabled + - polkit: follow the usual syntax for polkit actions + - hostnamed: introduce systemd-hostnamed + - units: order quotacheck after remount-rootfs + - hostname: split out hostname validation into util.c + - dbus: split out object management code into dbus-common, + and simplify it + - strv: properly override settings in env_append() + - strv: detect non-assignments in env blocks properly in + env_append() + - strv: handle empty lists in strv_copy() properly + - util: truncate newline inside of read_one_line_file() + - util: modernize get_parent_of_pid() a bit + - crypto: let the cryptsetup binary handles its own + configurable timeouts + - logger,initctl: use global exit timeout + - ask-password: use default timeout + - manager: drop all pending jobs when isolating + - manager: introduce IgnoreOnIsolate flag so that we can keep + systemd-logger around when isolating + - units: never pull in sysinit from utmp, so that we can + shutdown from emergency mode without pulling in sysinit + - manager: downgrade a few log messages + - units: require syslog.socket from the logger because we + simply fail if we don't have it + - logger: adjust socket description to match service + - units: set stdout of kmsg syslogd to /dev/null + - units: add --no-block when starting normal service after + shell exited + - ask-password: use kill(PID, 0) before querying a password + - ask-password: support passwords without timeouts + - ask-password: always send final NUL char + - ask-password: properly accept empty passwords from agent + - unit: skip default cgroup setup if we have no hierarchy + - units: isolate emergency.target instead of emergency.service + when we fail to mount all file systems + - mount: don't pull in stdio logger for root mount unit + - cgroup: be nice to Ingo Molnar + - pam: use /proc/self/sessionid only with CAP_AUDIT_CONTROL + - pam: use /proc/self/loginuid only with CAP_AUDIT_CONTROL + - socket: try creating a socket under our own identity if we + have no perms to consult the selinux database + - socket: fix check for SEQPACKET + - execute: don't fail if we cannot fix OOM in a container + - unit: fix dump output + - socket: be a bit more verbose when refusing to start a + socket unit + - socket: support netlink sockets + - local-fs: invoke emergency.service mounting at boot fails + - path: optionally, create watched directories in .path units + - tmpfiles: don't warn if two identical lines are configured + - man: add man page for ask-password + - dbus: expose monotonic timestamps on the bus + - manager: no need to use randomized generator dir when running + as system manager + - don't make up buffer sizes, use standard LINE_MAX instead + - unit: disallow configuration of more than one on_failure + dependencies if OnFailureIsolate= is on + - unit: pull in logger unit only when running in system mode + - manager: serialize/deserialize max job id and /usr taint flag + - manager: don't garbage collect jobs when isolating, to change + global state + - unit: introduce OnFailureIsolate= + - mount: relabel both before and after a mount, just in case + - cmdline: we actually want to parse the kernel cmdline in VMs, + just not in containers + - units: rename rtc-set.target to time-sync.target and pull it + in by hwclock-load.service + - job: fix deserialization of jobs: do not ignore ordering + - systemctl: properly parse JobNew signals + - service: fix units with more than one socket + - systemctl: make most operations NOPs in a chroot + - manager: don't show PID for incoming signals if it is 0 + - man: fix description of systemctl reload-or-try-restart + - mount: block creation of mount units for API file systems + - units: call the logger a bridge too + - build-sys: always place user units in /usr/lib/systemd + - pkgconfig: update .pc file accordingly + - lookup: always also look into /usr/lib for units + - exec: support unlimited resources + - selinux: relabel /run the same way as /dev after loading + the policy since they both come pre-filled and unlabelled + - manager: fd must be int, not char + - change remaining /var/run to /run + - units: move user units from /usr/share to /usr/lib since + they might be arch-dependent + - man: document /etc/sysctl.d/ + - binfmt: add binfmt tool to set up binfmt_misc at boot + - tmpfiles: create leading directories for d/D instructions + - condition: add ConditionSecurity + - load-fragment: unify config_parse_condition_{kernel, virt} + - condition: fix dumping of conditions + - initctl: /dev/initctl is a named pipe, not a socket + - kmsg-syslogd: pass facility value into kmsg + - move /var/lock to HAVE_SYSV_COMPAT + - tmpfiles: split off rules for legacy systems into legacy.conf + - general: replace a few uses of /var/run by /run + - tmpfiles: enforce new /var/lock semantics + - man: document ConditionPathIsDirectory= + - mount: also relabel pre-mounted API dirs + - log: don't strip facility when writing to kmsg + - build-sys: create a number of drop-in config dirs + - random: do not print warning if random seed doesn't exist + - plymouth: use PID file to detect whether ply is running + - build-sys: install systemd-analyze by default + - analyze: improve output + - analyze: add plotter + - unit: when deserializing do reconnect to dbus/syslog when + they show up + - analyze: beautify output a bit + - add systemd-analyze tool + - unit: don't override timestamps due to state changes when + deserializing + - plymouth: don't explicitly enable status message when + plymouth is up + - status: show status messages unconditionally if plymouth + is around + - taint: add missing cgroups taint flag + - locale: don't access misinitialized variable + - quota: do not pull in quota tools for mounts that do not + originate in neither /etc/fstab nor fragment files + - manager: fix taint check for /usr + - unit: never apply /etc/rcN.d/ priority to native services + - unit: fix parsing of condition-result + - unit: don't complain about failed units when deserializing + - exec: drop process group kill mode since it has little use + and confuses the user + - cgroup: explain when we cannot initialize the cgroup stuff + - systemctl: don't truncate description when using pager + - ask-password: also accept Backspace as first keypress as + silent mode switch + - unit: when deserializing jobs, don't pull in dependencies + - locale: fix LC_MESSAGES variable name + - plymouth: Remove the calls to plymouth message + - udev: systemd-tag all ttys + - tmpfiles fix /run/lock permissions + - ask-password: use TAB to disable asterisk password echo + - execute: socket isn't abstract anymore + - use /run instead of /dev/.run + - man: explain a couple of default dependencies + - mount: pull in quota services from local mountpoints with + usr/grpquota options + - service: pull in sysv facility targets from the sysv units, + not the other way round + - units: pull in syslog.target from syslog.socket + - units: don't ever pull in SysV targets from other SysV + targets + - units: document that some targets exists only for compat + with SysV + - man: document pidns containers + - units: deemphesize Names= settings, and explain why nobody + whould use them + - units: on mandriva/fedora create single.service alias via + symlink, not Names= + - units: get rid of runlevel Names=, the symlinks in + /lib/systemd/system are much more useful + - rework syslog detection so that we need no compile-time + option what the name of the syslog implementation is + - man: document .requires/ directories + - special: get rid of dbus.target + - exec: properly apply capability bounding set, add inverted + bounding sets + - dbus: add service D-Bus property "Sockets" + - dbus: consolidate service SysV conditionals + - unit: serialize condition test results + - def: centralize definition of default timeout in one place + - chkconfig: check against runlevel 5 instead of 3, since it is + a superset of the latter + - systemctl: accept condstop as alias for stop + - dbus: allow LoadUnit to unprivileged users + - umount: make sure skip_ro is always correctly initialized +- create /run (link it to /var/run) +- refresh splash password patch +- conflict with old mkinitrd version (we need /run) +- conflict with old udev (we need /run) + ------------------------------------------------------------------- Wed Mar 16 18:38:04 CET 2011 - kay.sievers@novell.com diff --git a/systemd.spec b/systemd.spec index 3169dc6a..4f7c749f 100644 --- a/systemd.spec +++ b/systemd.spec @@ -20,7 +20,7 @@ Name: systemd Url: http://www.freedesktop.org/wiki/Software/systemd -Version: 20 +Version: 25 Release: 1 License: GPLv2+ Group: System/Base @@ -35,15 +35,21 @@ BuildRequires: libcryptsetup-devel BuildRequires: pkg-config BuildRequires: gtk2-devel libnotify-devel BuildRequires: libselinux-devel libsepol-devel -Requires: udev >= 164 +Requires: udev >= 167 Requires: dbus-1 >= 1.4.0 Requires: kbd -Requires: util-linux >= 2.18.91 -Conflicts: mkinitrd < 2.6.0-5 +Requires: util-linux >= 2.19 +Conflicts: filesystem < 11.5 +Conflicts: mkinitrd < 2.7.0 Source0: http://www.freedesktop.org/software/systemd/releases/%{name}-%{version}.tar.bz2 Source1: systemd-rpmlintrc Patch1: 0001-Add-bootsplash-handling-for-password-dialogs.patch +# Upstream First - Policy: +# Never add any patches to this package without the upstream commit id +# in the patch. Any patches added here without a very good reason to make +# an exception will be silently removed with the next version update. + %description Systemd is a system and service manager, compatible with SysV and LSB init scripts for Linux. systemd provides aggressive parallelization @@ -115,7 +121,6 @@ ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/telinit ln -s ../bin/systemctl $RPM_BUILD_ROOT/sbin/runlevel rm -rf $RPM_BUILD_ROOT/etc/systemd/system/*.target.wants rm -f $RPM_BUILD_ROOT/etc/systemd/system/default.target -mkdir -p $RPM_BUILD_ROOT/etc/modules-load.d # alias for /etc/init.d/* ln -s hwclock-load.service $RPM_BUILD_ROOT/lib/systemd/system/clock.service ln -s systemd-random-seed-load.service $RPM_BUILD_ROOT/lib/systemd/system/random.service @@ -182,6 +187,7 @@ rm -rf $RPM_BUILD_ROOT /bin/systemd-machine-id-setup /usr/bin/systemd-nspawn /usr/bin/systemd-stdio-bridge +/usr/bin/systemd-analyze %{_bindir}/systemd-cgls /lib/systemd/systemd-* /%{_lib}/security/pam_systemd.so @@ -194,13 +200,14 @@ rm -rf $RPM_BUILD_ROOT %{_sysconfdir}/tmpfiles.d/*.conf %config(noreplace) %{_sysconfdir}/systemd/system.conf %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.systemd1.conf +%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.hostname1.conf %{_datadir}/dbus-1/interfaces/org.freedesktop.systemd1.*.xml %{_datadir}/dbus-1/services/org.freedesktop.systemd1.service %{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service +%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service %{_datadir}/polkit-1 %{_datadir}/polkit-1/actions %{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy -%{_datadir}/systemd %{_datadir}/pkgconfig/systemd.pc # Packaged in plymouth subpackage %exclude /lib/systemd/system/plymouth-*.service @@ -226,6 +233,8 @@ rm -rf $RPM_BUILD_ROOT %dir /lib/systemd /lib/systemd/system /lib/systemd/system-generators +%dir /usr/lib/systemd +/usr/lib/systemd/user %dir %{_sysconfdir}/systemd %dir %{_sysconfdir}/bash_completion.d /etc/bash_completion.d/systemctl-bash-completion.sh