Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread microcai
在 2014年7月7日 星期一 08:41:37,您写道: On Mon, Jul 7, 2014 at 7:29 AM, microcai micro...@fedoraproject.org wrote: a long ago, /dev/root is an symblic to real root device. no matter it is on NFS or HDD, we can use /dev/root / auto defaults 0 0 in fstab to mount / as readwrite.

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Mantas Mikulėnas
On Mon, Jul 7, 2014 at 10:38 AM, microcai micro...@fedoraproject.org wrote: 在 2014年7月7日 星期一 08:41:37,您写道: On Mon, Jul 7, 2014 at 7:29 AM, microcai micro...@fedoraproject.org wrote: a long ago, /dev/root is an symblic to real root device. no matter it is on NFS or HDD, we can use

Re: [systemd-devel] systemd-hostnamed not shutting down when unused

2014-07-07 Thread Umut Tezduyar Lindskog
Hi, I have tested it and it is working on git. I dug this up to figure few things out on shutting down dbus activated services when they are idle. Is it possible that follow up activation request on a service is being ignored by systemd because application has just recently quit? I have this

[systemd-devel] [PATCH] update .gitignore

2014-07-07 Thread Ronny Chevalier
--- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 822f5a6..cafcec0 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,8 @@ .deps/ .dirstamp .libs/ +/*.gcda +/*.gcno /*.tar.bz2 /*.tar.gz /*.tar.xz -- 2.0.1

[systemd-devel] [PATCH] journal: fix LZ4 and XZ decompression

2014-07-07 Thread Ronny Chevalier
LZ4 was not always properly supported and a typo would have made the build failed --- src/journal/journal-def.h| 2 +- src/journal/journal-file.c | 2 +- src/journal/journal-verify.c | 6 +++--- src/journal/sd-journal.c | 21 +++-- src/journal/test-compress.c | 2

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Samuli Suominen
On 07/07/14 07:29, microcai wrote: a long ago, /dev/root is an symblic to real root device. no matter it is on NFS or HDD, we can use /dev/root / auto defaults 0 0 in fstab to mount / as readwrite. recently, I recall this old feature, and tryed to use it, but the system failed

Re: [systemd-devel] systemd-networkd fails to get DHCPv4 lease with disabled IPv6

2014-07-07 Thread Colin Guthrie
'Twas brillig, and Tom Gundersen at 06/07/14 23:32 did gyre and gimble: That worked... thanks. BTW, is yes/true still a valid argument for DHCP (because the manpage says otherwise)? yes is a synonym for both and no for none. While I know it's not something we need to worry about for a long,

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Thomas Blume
On Fri, 4 Jul 2014, Lennart Poettering wrote: +_id = PR/SM; +r = 1; Well, this is not useful, this is about detecting whether the OS we run in is the closest to the hardware of the system or is is removed from it via some virtualization layer. This definition means that on

Re: [systemd-devel] systemd-notify --ready is not reliable

2014-07-07 Thread pradip K
Eelco Dolstra eelco.dolstra at logicblox.com writes: Hi all, I've noticed that the command systemd-notify --ready does not work reliably to signal that a service is ready. It works sometimes, but most of the time you get a message like: systemd[1]: Cannot find unit for notify

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Thomas Blume
On Fri, 4 Jul 2014, Dan Horák wrote: On Fri, 4 Jul 2014 15:07:18 +0200 (CEST) Thomas Blume thomas.bl...@suse.com wrote: systemd was lacking the code to detect virtualization on s390x. The patch adds detection for the primary virtualization layer (PR/SM) as well as for secondary layers (z/VM

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Lennart Poettering
On Sun, 06.07.14 19:17, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Shouldn't systemd-sysusers update /etc/gshadow when adding 'basic' groups? From sysusers.c I don't see that gshadow (and shadow) is updated, and this seems to cause problems on package updates. Consider the

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Thomas Blume
On Fri, 4 Jul 2014, Zbigniew Jędrzejewski-Szmek wrote: +#if defined(__s390x__) +/* First layer virtualization (PR/SM) is always present on s390x */ +_id = PR/SM; +r = 1; What does this mean? Is it like XEN dom0, i.e. normianally a virtuallized OS, but one that has full

Re: [systemd-devel] How to use sd_notify (was Re: systemd-notify --ready is not reliable)

2014-07-07 Thread Mantas Mikulėnas
On Jul 7, 2014 1:20 PM, pradip K pskoth...@gmail.com wrote: I am trying implement watchdog feature using sd_notify, could you pls give us more details on setting $NOTIFY_SOCKET. Like how to create socket and assign to environment NOTIFY_SOCKET for this The socket is created automatically by

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 12:29, microcai (micro...@fedoraproject.org) wrote: a long ago, /dev/root is an symblic to real root device. no matter it is on NFS or HDD, we can use /dev/root / auto defaults 0 0 in fstab to mount / as readwrite. recently, I recall this old feature, and

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 11:14, Samuli Suominen (ssuomi...@gentoo.org) wrote: On 07/07/14 07:29, microcai wrote: a long ago, /dev/root is an symblic to real root device. no matter it is on NFS or HDD, we can use /dev/root / auto defaults 0 0 in fstab to mount / as readwrite.

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Marco d'Itri
On Jul 07, Thomas Blume thomas.bl...@suse.com wrote: Hm, s390 (32 bit) is quiet ancient. Not sure if anyone would use such old systems with a pretty recent linux version shipping systemd. But if there are some use cases, of course we could do this. Debian recently killed the s390 port in

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 12:18, Thomas Blume (thomas.bl...@suse.com) wrote: On Fri, 4 Jul 2014, Lennart Poettering wrote: +_id = PR/SM; +r = 1; Well, this is not useful, this is about detecting whether the OS we run in is the closest to the hardware of the system or is is

Re: [systemd-devel] systemctl escaping of unit names

2014-07-07 Thread Lennart Poettering
On Sun, 06.07.14 22:28, Michael Biebl (mbi...@gmail.com) wrote: +if (argc != 2) { +log_error(This program requires on argument.); +return EXIT_FAILURE; +} + +escaped_name = unit_name_escape(argv[1]); I'd prefer if we'd do this for all

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Thomas Blume
On Mon, 7 Jul 2014, Lennart Poettering wrote: Actually it is like there is no dom0 on s390(x). Direct hardware access is done on a level where the operating system doesn't have any influence. For example, unlike Xen dom0, the disks are never physical devices, they are only shares of a storage

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Dan Horák
On Mon, 7 Jul 2014 12:22:19 +0200 (CEST) Thomas Blume thomas.bl...@suse.com wrote: On Fri, 4 Jul 2014, Dan Horák wrote: On Fri, 4 Jul 2014 15:07:18 +0200 (CEST) Thomas Blume thomas.bl...@suse.com wrote: systemd was lacking the code to detect virtualization on s390x. The patch adds

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Michael Biebl
2014-07-07 10:14 GMT+02:00 Samuli Suominen ssuomi...@gentoo.org: We restore the /dev/root symlink in Gentoo same way Debian is restoring it on non-systemd This has been removed from Debian's udev package a while ago

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Samuli Suominen
On 07/07/14 14:32, Michael Biebl wrote: 2014-07-07 10:14 GMT+02:00 Samuli Suominen ssuomi...@gentoo.org: We restore the /dev/root symlink in Gentoo same way Debian is restoring it on non-systemd This has been removed from Debian's udev package a while ago

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread microcai
在 2014年7月7日 星期一 10:54:13,您写道: rootfstype=, rootflags=. (rw is a separate option, doesn't go in rootflags=.) I failed with rootflags. kernel panic. can't work with rootflags=nodev,noatime,discard ___ systemd-devel mailing list

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread microcai
在 2014年7月7日 星期一 11:14:40,Samuli Suominen 写道: On 07/07/14 07:29, microcai wrote: a long ago, /dev/root is an symblic to real root device. no matter it is on NFS or HDD, we can use /dev/root / auto defaults 0 0 in fstab to mount / as readwrite. recently, I recall this

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 12:57, Thomas Blume (thomas.bl...@suse.com) wrote: On Mon, 7 Jul 2014, Lennart Poettering wrote: Actually it is like there is no dom0 on s390(x). Direct hardware access is done on a level where the operating system doesn't have any influence. For example, unlike Xen

Re: [systemd-devel] [PATCH 1/2] journal: add LZ4 as optional compressor

2014-07-07 Thread Reindl Harald
Am 06.07.2014 21:47, schrieb Lennart Poettering: BTW, have you checked whether reuseing the XZ context might make the XZ more competitive? please try a simple test compress 50 MB with XZ and GZ, LZO, LZ4 or BZIP2 - XZ is *magnitudes* slower in any case, there is simply nothing to optimize - XZ

Re: [systemd-devel] [PATCH 1/2] dhcp-network: add check for DHCP.chaddr

2014-07-07 Thread Michal Sekletar
On Tue, Jun 24, 2014 at 03:54:54PM +0200, Tom Gundersen wrote: On Tue, Jun 24, 2014 at 12:58 PM, Michal Sekletar msekl...@redhat.com wrote: On Thu, Jun 19, 2014 at 12:02:39PM -0500, Dan Williams wrote: On Thu, 2014-06-19 at 18:59 +0200, Michal Sekletar wrote: Check that received DHCP

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 14:41, Samuli Suominen (ssuomi...@gentoo.org) wrote: On 07/07/14 14:32, Michael Biebl wrote: 2014-07-07 10:14 GMT+02:00 Samuli Suominen ssuomi...@gentoo.org: We restore the /dev/root symlink in Gentoo same way Debian is restoring it on non-systemd This has been

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 19:53, microcai (micro...@fedoraproject.org) wrote: I am not talk about bring back /dev/root, but just a way of refereing whatever root device specified on kernel commandline in fstab or in -.mount unit. deserize root filesystem and configure the bootloader, and

[systemd-devel] [PATCH] Added support for ERRNO NOTIFY_SOCKET message parsing, and added StatusErrno dbus property along StatusText to allow notification of numeric status condition while degraded ser

2014-07-07 Thread majopela
From: Miguel Angel Ajo mangel...@redhat.com --- src/core/dbus-service.c | 1 + src/core/service.c | 19 +++ src/core/service.h | 1 + 3 files changed, 21 insertions(+) diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c index 093289f..5a881e8 100644 ---

[systemd-devel] [PATCH] dhcp-network: ignore IP packets with More Fragments (MF) flag set

2014-07-07 Thread Michal Sekletar
We already ignore IP fragments, because we expect that Fragment offset (FO) field is not set. However first fragment in a fragmented IP flow will have all zeroes in FO field. We should ignore such packet as well, thus we need to look at MF flag in the IP header. Checking MF flag will filter out

Re: [systemd-devel] using /dev/root in fstab

2014-07-07 Thread Michael Biebl
Hi Samuli, 2014-07-07 13:41 GMT+02:00 Samuli Suominen ssuomi...@gentoo.org: also Quota's quotacheck command uses /dev/root on XFS file systems, also 'nilfs-utils' uses /dev/root, also e2fsprogs e4defrag still uses /dev/root If even e2fsprogs and quota would be fixed from those, I'd be

Re: [systemd-devel] Misleading udev error messages regarding virtual interfaces

2014-07-07 Thread Tom Gundersen
On Sun, Jul 6, 2014 at 6:43 PM, Leonid Isaev lis...@umail.iu.edu wrote: Hi, Sorry for a delayed reply. On Thu, Jul 03, 2014 at 01:46:53PM +0200, Lennart Poettering wrote: it would be good to know what the precise error output is you get now with this new change... With systemd-215 udevd

Re: [systemd-devel] [PATCH] dhcp-network: ignore IP packets with More Fragments (MF) flag set

2014-07-07 Thread Tom Gundersen
On Mon, Jul 7, 2014 at 2:45 PM, Michal Sekletar msekl...@redhat.com wrote: We already ignore IP fragments, because we expect that Fragment offset (FO) field is not set. However first fragment in a fragmented IP flow will have all zeroes in FO field. We should ignore such packet as well, thus

Re: [systemd-devel] [systemd-commits] 10 commits - .gitignore Makefile.am TODO configure.ac man/systemd.unit.xml src/core src/firstboot src/hostname src/locale src/shared src/sleep src/timedate units/

2014-07-07 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jul 07, 2014 at 06:26:33AM -0700, Lennart Poettering wrote: .gitignore |2 Makefile.am | 36 + TODO|5 configure.ac|9 man/systemd.unit.xml|9

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Thomas Blume
On Mon, 7 Jul 2014, Lennart Poettering wrote: For the test, e.g. ConditionVirtualization, there would be no difference. I only distinguished this in order to have systemd-detect-virt showing the correct virtualization technology. Sure we could cover everything under something like, e.g. s390

Re: [systemd-devel] [PATCH] Added support for ERRNO NOTIFY_SOCKET message parsing, and added StatusErrno dbus property along StatusText to allow notification of numeric status condition while degraded

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 14:20, majop...@redhat.com (majop...@redhat.com) wrote: From: Miguel Angel Ajo mangel...@redhat.com Thanks! Applied (with minor modifications)! --- src/core/dbus-service.c | 1 + src/core/service.c | 19 +++ src/core/service.h | 1 + 3

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Leonid Isaev
Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM +0200, Lennart Poettering wrote: I wasn#t aware of grpck, and quite frankly don't think it makes much sense, what the tool is doing. Why? Checking syntax can never hurt... Does it mean that on each update, a

Re: [systemd-devel] Misleading udev error messages regarding virtual interfaces

2014-07-07 Thread Leonid Isaev
Hi, On Mon, Jul 07, 2014 at 03:02:47PM +0200, Tom Gundersen wrote: On Sun, Jul 6, 2014 at 6:43 PM, Leonid Isaev lis...@umail.iu.edu wrote: Hi, Sorry for a delayed reply. On Thu, Jul 03, 2014 at 01:46:53PM +0200, Lennart Poettering wrote: it would be good to know what the precise

Re: [systemd-devel] systemd-notify --ready is not reliable

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 09:51, pradip K (pskoth...@gmail.com) wrote: Hi Eelco, Please dont hijack threads, open your own. I am trying implement watchdog feature using sd_notify, could you pls give us more details on setting $NOTIFY_SOCKET. Like how to create socket and assign to environment

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Thomas Blume
On Mon, 7 Jul 2014, Lennart Poettering wrote: IMHO the main difference is the level of maturity. z/VM is about 30 years old and has a huge amount of tools for everything you could imagine. KVM is relatively new and under heavy development. Furthermore, KVM is bound to the linux kernel, while

Re: [systemd-devel] [PATCH] Added support for ERRNO NOTIFY_SOCKET message parsing, and added StatusErrno dbus property along StatusText to allow notification of numeric status condition while degraded

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 17:03, Lennart Poettering (lenn...@poettering.net) wrote: On Mon, 07.07.14 14:20, majop...@redhat.com (majop...@redhat.com) wrote: From: Miguel Angel Ajo mangel...@redhat.com Thanks! Applied (with minor modifications)! I have also updated systemctl status now so that

Re: [systemd-devel] [PATCH] systemd-detect-s390-virt: add virtualization detection on s390x

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 17:32, Thomas Blume (thomas.bl...@suse.com) wrote: On Mon, 7 Jul 2014, Lennart Poettering wrote: IMHO the main difference is the level of maturity. z/VM is about 30 years old and has a huge amount of tools for everything you could imagine. KVM is relatively new and under

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 11:08, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM +0200, Lennart Poettering wrote: I wasn#t aware of grpck, and quite frankly don't think it makes much sense, what the tool is doing. Why?

Re: [systemd-devel] [PATCH] Added support for ERRNO NOTIFY_SOCKET message parsing, and added StatusErrno dbus property along StatusText to allow notification of numeric status condition while degraded

2014-07-07 Thread Miguel Angel Ajo Pelayo
Ahh, thank you very much Lennart, very nice of you, I missed those bits. Best, Miguel Ángel. - Original Message - On Mon, 07.07.14 17:03, Lennart Poettering (lenn...@poettering.net) wrote: On Mon, 07.07.14 14:20, majop...@redhat.com (majop...@redhat.com) wrote: From: Miguel

[systemd-devel] [PATCH] resolved: Move symlink creation from tmpfiles to daemon runtime

2014-07-07 Thread Colin Walters
[ Still testing this patch, but since it's nominated for Fedora 21 Alpha blocker, sending upstream now for review ] At least Fedora right now doesn't by default use resolved; the service is disabled by default in the 90-default.preset file. The change to unconditionally create the resolv.conf

Re: [systemd-devel] [PATCH] resolved: Move symlink creation from tmpfiles to daemon runtime

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 09:45, Colin Walters (walt...@verbum.org) wrote: [ Still testing this patch, but since it's nominated for Fedora 21 Alpha blocker, sending upstream now for review ] At least Fedora right now doesn't by default use resolved; the service is disabled by default in the

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Leonid Isaev
On Mon, Jul 07, 2014 at 05:40:42PM +0200, Lennart Poettering wrote: On Mon, 07.07.14 11:08, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM +0200, Lennart Poettering wrote: I wasn#t aware of grpck, and quite

Re: [systemd-devel] [PATCH] resolved: Move symlink creation from tmpfiles to daemon runtime

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 10:22, Colin Walters (walt...@verbum.org) wrote: https://git.fedorahosted.org/cgit/anaconda.git/tree/pyanaconda/network.py#n1036 is one case. There are several other image-building tools like lorax and livecd-creator which also expect either ENOENT, or a writable

Re: [systemd-devel] [systemd-commits] 10 commits - .gitignore Makefile.am TODO configure.ac man/systemd.unit.xml src/core src/firstboot src/hostname src/locale src/shared src/sleep src/timedate units/

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 16:14, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: wouldn't it be simpler to add a ConditionFirstBoot=yes or ConditionBoot=first to units? Umm. Well. Uh. Oh. Didn't think of that. Will fix! Thanks, Lennart -- Lennart Poettering, Red Hat

Re: [systemd-devel] systemd-sysusers and gshadow

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 13:16, Leonid Isaev (lis...@umail.iu.edu) wrote: On Mon, Jul 07, 2014 at 05:40:42PM +0200, Lennart Poettering wrote: On Mon, 07.07.14 11:08, Leonid Isaev (lis...@umail.iu.edu) wrote: Hi, Thanks for the explanation... On Mon, Jul 07, 2014 at 12:26:03PM

Re: [systemd-devel] [PATCH] resolved: Move symlink creation from tmpfiles to daemon runtime

2014-07-07 Thread Colin Walters
On Mon, Jul 7, 2014, at 10:35 AM, Lennart Poettering wrote: And of course, it's the most reasonable thing to do really, as in today's world it's populated dynamically from DHCP more often than not, and hence more runtime material than static configuration material. I agree. But... Humm,

Re: [systemd-devel] [PATCH] Revert build-sys: include PolicyKit files as part of distribution

2014-07-07 Thread Filipe Brandenburger
+Zbigniew who committed the original patch. On Fri, Jul 4, 2014 at 11:43 AM, Mike Gilbert flop...@gentoo.org wrote: This reverts commit 0c26bfc3d21fdb3963f1248c237e2f1a33b5566d. src/core/org.freedesktop.systemd1.policy.in.in depends on values which are specified at configure time, so we

Re: [systemd-devel] [PATCH 2/2] compress: add benchmark-style test

2014-07-07 Thread Uoti Urpala
On Sat, 2014-07-05 at 20:56 +0200, Zbigniew Jędrzejewski-Szmek wrote: This is useful to test the behaviour of the compressor for various buffer sizes. Time is limited to a minute per compression, since otherwise, when LZ4 takes more than a second which is necessary to reduce the noise, XZ

[systemd-devel] How to suspend and wait for resume

2014-07-07 Thread Maciej Piechotka
Hi, I have following problem. I'd like to suspend and then after the system resumes execute a command - problem is that systemctl suspend finishes immediately, without waiting for the resume. Is there a way of executing a command after the resume has happened as user or do I need to add

Re: [systemd-devel] [PATCH] resolved: Move symlink creation from tmpfiles to daemon runtime

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 10:59, Colin Walters (walt...@verbum.org) wrote: And of course, it's the most reasonable thing to do really, as in today's world it's populated dynamically from DHCP more often than not, and hence more runtime material than static configuration material. I agree. But...

Re: [systemd-devel] [PATCH 2/2] compress: add benchmark-style test

2014-07-07 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jul 07, 2014 at 09:35:06PM +0300, Uoti Urpala wrote: On Sat, 2014-07-05 at 20:56 +0200, Zbigniew Jędrzejewski-Szmek wrote: This is useful to test the behaviour of the compressor for various buffer sizes. Time is limited to a minute per compression, since otherwise, when LZ4

Re: [systemd-devel] Extending os-release

2014-07-07 Thread Mantas Mikulėnas
Sounds like a better fit for /etc/machine-info, as it's really not a distro thing. -- Mantas Mikulėnas graw...@gmail.com // sent from phone On Jul 7, 2014 10:41 PM, Jóhann B. Guðmundsson johan...@gmail.com wrote: Hi I've noticed repeated problem through history where administrators seem to

[systemd-devel] Extending os-release

2014-07-07 Thread Jóhann B. Guðmundsson
Hi I've noticed repeated problem through history where administrators seem to be struggling with clearly identify the server environment they are working in. Some try to come up with terminal colours associated with it, others use hostnaming scheme etc, so I was wondering if we could not

Re: [systemd-devel] [PATCH 2/2] compress: add benchmark-style test

2014-07-07 Thread Kay Sievers
On Mon, Jul 7, 2014 at 9:40 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Jul 07, 2014 at 09:35:06PM +0300, Uoti Urpala wrote: On Sat, 2014-07-05 at 20:56 +0200, Zbigniew Jędrzejewski-Szmek wrote: This is useful to test the behaviour of the compressor for various buffer

Re: [systemd-devel] [PATCH 2/2] compress: add benchmark-style test

2014-07-07 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Jul 07, 2014 at 09:47:15PM +0200, Kay Sievers wrote: On Mon, Jul 7, 2014 at 9:40 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Jul 07, 2014 at 09:35:06PM +0300, Uoti Urpala wrote: On Sat, 2014-07-05 at 20:56 +0200, Zbigniew Jędrzejewski-Szmek wrote: This is

Re: [systemd-devel] systemctl escaping of unit names

2014-07-07 Thread Lennart Poettering
On Mon, 07.07.14 12:50, Lennart Poettering (lenn...@poettering.net) wrote: On Sun, 06.07.14 22:28, Michael Biebl (mbi...@gmail.com) wrote: +if (argc != 2) { +log_error(This program requires on argument.); +return EXIT_FAILURE; +} + +

Re: [systemd-devel] Extending os-release

2014-07-07 Thread Jóhann B. Guðmundsson
On 07/07/2014 08:38 PM, Zbigniew Jędrzejewski-Szmek wrote: On Mon, Jul 07, 2014 at 08:02:19PM +, Jóhann B. Guðmundsson wrote: On 07/07/2014 08:00 PM, Tom Gundersen wrote: On Mon, Jul 7, 2014 at 9:44 PM, Mantas Mikulėnas graw...@gmail.com wrote: Sounds like a better fit for

[systemd-devel] How to suspend and wait for resume

2014-07-07 Thread Maciej Piechotka
Hi, I have following problem. I'd like to suspend and then after the system resumes execute a command - problem is that systemctl suspend finishes immediately, without waiting for the resume. Is there a way of executing a command after the resume has happened as user or do I need to add

Re: [systemd-devel] How to suspend and wait for resume

2014-07-07 Thread Maciej Piechotka
On Mon, 2014-07-07 at 22:58 +0200, Maciej Piechotka wrote: Hi, I have following problem. I'd like to suspend and then after the system resumes execute a command - problem is that systemctl suspend finishes immediately, without waiting for the resume. Is there a way of executing a command

Re: [systemd-devel] [PATCH 2/2] compress: add benchmark-style test

2014-07-07 Thread Kay Sievers
On Mon, Jul 7, 2014 at 10:33 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Jul 07, 2014 at 09:47:15PM +0200, Kay Sievers wrote: On Mon, Jul 7, 2014 at 9:40 PM, Zbigniew Jędrzejewski-Szmek zbys...@in.waw.pl wrote: On Mon, Jul 07, 2014 at 09:35:06PM +0300, Uoti Urpala wrote:

Re: [systemd-devel] systemctl escaping of unit names

2014-07-07 Thread Michael Biebl
2014-07-07 22:54 GMT+02:00 Lennart Poettering lenn...@poettering.net: I have now committed your original patch and beefed it up considerably. Added Zbigniew's --template= switch, and a couple of other things. Also added docs, with a few examples.

[systemd-devel] [PATCH 1/4] Add ENVIRONMENT to hostnamectl

2014-07-07 Thread Jóhann B . Guðmundsson
--- src/hostname/hostnamectl.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index 267cd74..e164086 100644 --- a/src/hostname/hostnamectl.c +++ b/src/hostname/hostnamectl.c @@ -67,6 +67,7 @@

[systemd-devel] [PATCH 2/4] Add ENVIRONMENT to hostnamed

2014-07-07 Thread Jóhann B . Guðmundsson
--- src/hostname/hostnamed.c | 49 +--- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/src/hostname/hostnamed.c b/src/hostname/hostnamed.c index 514554d..b5ed3e9 100644 --- a/src/hostname/hostnamed.c +++ b/src/hostname/hostnamed.c @@

[systemd-devel] [PATCH 4/4] Add ENVIRONMENT to machine-info man page

2014-07-07 Thread Jóhann B . Guðmundsson
--- man/machine-info.xml | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/man/machine-info.xml b/man/machine-info.xml index 7448e68..b7e5604 100644 --- a/man/machine-info.xml +++ b/man/machine-info.xml @@ -156,6 +156,19 @@

[systemd-devel] [PATCH 3/4] Add ENVIRONMENT to hostnamectl man page

2014-07-07 Thread Jóhann B . Guðmundsson
--- man/hostnamectl.xml | 13 + 1 file changed, 13 insertions(+) diff --git a/man/hostnamectl.xml b/man/hostnamectl.xml index 7729ef6..8c31e2f 100644 --- a/man/hostnamectl.xml +++ b/man/hostnamectl.xml @@ -223,6 +223,19 @@ parameters./para/listitem

Re: [systemd-devel] [PATCH 1/4] Add ENVIRONMENT to hostnamectl

2014-07-07 Thread Kay Sievers
On Tue, Jul 8, 2014 at 2:38 AM, Jóhann B. Guðmundsson johan...@gmail.com wrote: --- src/hostname/hostnamectl.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/hostname/hostnamectl.c b/src/hostname/hostnamectl.c index 267cd74..e164086 100644 ---

Re: [systemd-devel] [PATCH 1/4] Add ENVIRONMENT to hostnamectl

2014-07-07 Thread Steven Noonan
On Mon, Jul 7, 2014 at 5:55 PM, Kay Sievers k...@vrfy.org wrote: On Tue, Jul 8, 2014 at 2:38 AM, Jóhann B. Guðmundsson johan...@gmail.com wrote: --- src/hostname/hostnamectl.c | 20 +--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git