For easier editing, add source format modeline similar to other files.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Mikko Ylinen
Acked-by: Darren Hart
---
src/efi/gummiboot.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/efi/gummiboot.c b/src/efi/gummiboot.c
index 8ef3e09..127db22
Make file_read usable from other compilation units allowing reuse
of code when splitting functionality to multiple files.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Darren Hart
Reviewed-by: Mikko Ylinen
---
src/efi/gummiboot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Add generic purpose number parsing function to be used by modeline
parsing.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Darren Hart
Reviewed-by: Mikko Ylinen
---
src/efi/gummiboot.c | 26 ++
1 file changed, 26 insertions(+)
diff --git a/src/efi/gummiboot.c b/src/efi/g
Be consistent with other source file definitions.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Mikko Ylinen
Acked-by: Darren Hart
---
Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile.am b/Makefile.am
index b32dc76..a17493d 100644
--- a/Makefile.am
+++
Add utility to convert 8-bit PPM files into UEFI GOP supported BGRX
files to be used as splash screens.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Mikko Ylinen
Acked-by: Darren Hart
---
.gitignore | 1 +
Makefile.am | 12
README.gop | 10 +++
utils/ppm2bgrx.c | 199
Convert console_text_mode function into console_mode function
which is able to switch back and forth between graphics and text
mode.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Darren Hart
Reviewed-by: Mikko Ylinen
---
src/efi/gummiboot.c | 32 +---
1 file changed,
Hi,
The following patch series implement UEFI GOP graphics mode
initialization and screen clearing functionality to Gummiboot. They're
all based on top of the current master. The functionality was written
against the UEFI specification, so it should work everywhere where that
functionality is ava
Add support for two new configuration directives gfxmode and splash
which respectively allow setting the screen graphics mode and drawing
splash image during gummiboot execution. See README.gop for more
details.
Signed-off-by: Joonas Lahtinen
Reviewed-by: Mikko Ylinen
Acked-by: Darren Hart
---
El 10/12/13 03:47, Andrey Borzenkov escribió:
There is no such service on openSUSE, which OP has :)
Yes there is :-) but in factory only.
___
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinf
В Mon, 9 Dec 2013 12:42:21 -0700
Chris Murphy пишет:
>
> On Dec 9, 2013, at 3:33 AM, Thomas Bächler wrote:
>
> > Am 07.12.2013 22:29, schrieb Robert Milasan:
> >> From systemd-analyze dump:
> >>
> >>Wants: systemd-udevd.service
> >>WantedBy: lvm2-activation-early.service
> >>
On Mon, Dec 09, 2013 at 09:01:08PM +0100, Thomas H.P. Andersen wrote:
> From: Thomas Hindoe Paaboel Andersen
>
> The static analyzer scan-build had a few issues with analysing
> parts of systemd.
>
> gpt-auto-generator.c:
> scan-build could not find blkid.h. Whether it should be blkid.h or
> blk
On Mon, Dec 09, 2013 at 09:22:43PM +0100, Thomas H.P. Andersen wrote:
> If I understood correctly then the assert_return was meant to be used
> only on the public library functions. I can't seem to find the
> reference to it so maybe I am wrong though.
There's no strong reason to limit usage to pub
On Tue, Dec 10, 2013 at 02:06:07AM +0100, Sébastien Luttringer wrote:
> On 05/12/2013 02:55, Sébastien Luttringer wrote:
> > Kernel install doesn't need the second argument on his command line when
> > removing.
> > This is correctly documented in the man page.
> >
> > Signed-off-by: Sébastien Lut
On Mon, Dec 09, 2013 at 11:43:06PM +0200, Patrik Flykt wrote:
> Hi,
>
> Here is version 3 fixed according to comments plus a few identical ones
> found in the code.
>
> Essential changes are unconditionally compiling the DHCP code and re-adding
> the sd_dhcp_client_get_netmask() function du
On 10 Dec 2013 02:44, "Ronny Chevalier" wrote:
>
> Do we really want to add a compat for several distributions ? Because
> why not Archlinux, Ubuntu,... too ?
> I used Fedora's path by default because it was in the previous script.
Maybe just use the path created by our kernel-install script?
Ch
On Mon, 09.12.13 23:43, Patrik Flykt ([email protected]) wrote:
> +struct DHCPMessage {
> +uint8_t op;
> +uint8_t htype;
> +uint8_t hlen;
> +uint8_t hops;
> +be32_t xid;
> +be16_t secs;
> +be16_t flags;
> +uint32_t ciaddr;
On Mon, 09.12.13 23:41, Patrik Flykt ([email protected]) wrote:
>
> On Mon, 2013-11-25 at 23:52 +0100, Lennart Poettering wrote:
> > Of course, timer callbacks should only be called once, ence
> > ONESHOT mode is the default -- unless you change that explicitly.
> >
> > If this doesn'
On 05/12/2013 02:55, Sébastien Luttringer wrote:
> Kernel install doesn't need the second argument on his command line when
> removing.
> This is correctly documented in the man page.
>
> Signed-off-by: Sébastien Luttringer
> ---
> src/kernel-install/kernel-install | 2 +-
> 1 file changed, 1 in
(Sorry for taking so long to answer, I was away from my test system).
On Sat, Dec 7, 2013 at 5:56 PM, Colin Guthrie wrote:
> 'Twas brillig, and Canek Peláez Valdés at 05/12/13 23:26 did gyre and
> gimble:
>> Hi; I've been playing with systemd-nspawn with Gentoo. I'm running
>> systemd 208, and th
Until there are some use cases for Distribute= w/o
SO_REUSEPORT make it imply that. Otherwise we need
a new config_parse_distribute in load-fragment.c
and gain the same issues of config_parse_syscall,
where NoNewPrivs can be still set to false,
but only if set _after_ SystemCallFilter (only allowed
---
src/core/manager.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/src/core/manager.c b/src/core/manager.c
index f06df54..56c10cf 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -22,9 +22,7 @@
#include
#include
#include
-#include
#include
-#include
#include
#inclu
Create an initial simple test program for these two cases.
---
src/dhcp/test-dhcp-option.c | 51 +++
1 file changed, 51 insertions(+)
create mode 100644 src/dhcp/test-dhcp-option.c
diff --git a/src/dhcp/test-dhcp-option.c b/src/dhcp/test-dhcp-option.c
ne
---
Makefile.am | 20
1 file changed, 20 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 5794380..cface06 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3837,6 +3837,26 @@ lib_LTLIBRARIES += \
endif
#
-
Add maximum message size option to keep some DHCP server implementations
from sending too big messages. See ConnMan commit
0c5c862749c05193cf4c513628328c6db02b5222.
---
src/dhcp/client.c | 12
src/dhcp/protocol.h |1 +
2 files changed, 13 insertions(+)
diff --git a/src/dhcp/c
Open a packet socket, create a link level header, send packet and
close socket. Adding it to a separate file makes testing of the
DHCP sending much easier, as the test program can supply any socket
to the DHCP client code.
---
v3: use size_t and set buffer to const
src/dhcp/internal.h |2 ++
Create a function for handling the full IP, UDP and DHCP packet
and tie it to the main loop. Verify IP and UDP headers and checksum.
Creat a new lease structure with using the values supplied in the
DHCP message. Free the lease structure when client is stopped.
Split out socket handling into a cre
Require a main loop to be set when creating a DHCP client. Set up
a timer to resend DHCP Discover messages and add a 0-2 second
delay to the timeout value. Move to state Selecting after successful
sending of a Discover message.
---
v3: take ref on event loop, unref in free function in patch 26/26
---
src/dhcp/client.c| 13 +
src/systemd/sd-dhcp-client.h |1 +
2 files changed, 14 insertions(+)
diff --git a/src/dhcp/client.c b/src/dhcp/client.c
index d93cceb..2a479e4 100644
--- a/src/dhcp/client.c
+++ b/src/dhcp/client.c
@@ -961,6 +961,19 @@ int sd_dhcp_client_
---
src/dhcp/test-dhcp-client.c | 81 +++
1 file changed, 81 insertions(+)
create mode 100644 src/dhcp/test-dhcp-client.c
diff --git a/src/dhcp/test-dhcp-client.c b/src/dhcp/test-dhcp-client.c
new file mode 100644
index 000..cb2f652
--- /dev/null
+++
---
Makefile.am |6 --
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 1b9edf2..cfa9b4b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3855,7 +3855,8 @@ libsystemd_dhcp_la_LDFLAGS = \
$(AM_LDFLAGS)
libsystemd_dhcp_la_LIBADD = \
-
It was noticed by Grant Erickson in ConnMan commit
95e15c09350acf58d4707056ae2614570883ef66 that:
"Certain DHCP servers, such as that implemented in Mac OS X
(< 10.7) for its "Internet Sharing" feature, refuse to issue
a DHCP lease to clients that have not set a non-zero value
in th
---
src/shared/socket-util.h |2 ++
1 file changed, 2 insertions(+)
diff --git a/src/shared/socket-util.h b/src/shared/socket-util.h
index d42a2fe..84ebc30 100644
--- a/src/shared/socket-util.h
+++ b/src/shared/socket-util.h
@@ -27,6 +27,7 @@
#include
#include
#include
+#include
#in
Define a notification callback and events for stopping and client
lease expiry. Add functions to fetch IP parameters from a lease.
---
src/dhcp/client.c| 112 +-
src/systemd/sd-dhcp-client.h | 13 +
2 files changed, 124 insertions(+), 1 de
Create a new directory to host DHCP components.
---
src/dhcp/protocol.h | 104 +++
1 file changed, 104 insertions(+)
create mode 100644 src/dhcp/protocol.h
diff --git a/src/dhcp/protocol.h b/src/dhcp/protocol.h
new file mode 100644
index 000..
Provide functionality for initializing a DHCP client struct, setting
interface index, last used address and additional options to request.
On initialization the most useful options are added by default.
---
v3: fix OOM check, #ifdef in public header, fix struct prefix
src/dhcp/client.c
Add checks for invalid lengths and parameters when using the option
appending function. Add also checks for adding options, see to it
that the resulting array is identical to the array of options added.
---
src/dhcp/test-dhcp-option.c | 72 +++
1 file chan
---
Makefile.am | 10 ++
1 file changed, 10 insertions(+)
diff --git a/Makefile.am b/Makefile.am
index 4e13370..5794380 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3837,6 +3837,15 @@ lib_LTLIBRARIES += \
endif
#
---
On starting the client, use the supplied interface mac address and create
a transaction id. Puzzle together an IP/UDP/DHCP Discover message, compute
checksums and send it out as a raw packet.
Create an additional function that constructs default options common to
all DHCP messages.
Set the DHCP C
Compute the default T1 and T2 timer values if they were not set by
the DHCP server. Verify that the values are reasonable.
---
src/dhcp/client.c | 116 ++-
src/dhcp/protocol.h |2 +
2 files changed, 117 insertions(+), 1 deletion(-)
diff --git
Add a structure describing the DHCP file, sname and trailing options
fields. Create a messge holding these fields and call the internal
option parsing function.
In the test callback function verify that only regular options are
passed and figure out which part of the DHCP message is the one that
i
Process a DHCP Ack/Nak in much the same way as an DHCP Offer. Factor
out header verification and process options sent. Add notification
functionality with discrete values for the outcome of the DHCP Ack/
Nak processing.
---
v3: use size_t for length, -ENOMEM for OOM
src/dhcp/client.c|
Create and send a DHCP Request message reusing already existing parts
of the code. This causes factoring out IP and UDP header creation and
moving next timeout calculation to be done every time in the timer
callback function independent of DHCP state. Also add an exponential
part to the timer calcu
The client is stopped and brought back to its initial state.
---
src/dhcp/client.c| 32
src/systemd/sd-dhcp-client.h |1 +
2 files changed, 33 insertions(+)
diff --git a/src/dhcp/client.c b/src/dhcp/client.c
index 665f986..60a1b4c 100644
--- a/sr
Set a fake MAC address and emulate raw packet sending. When the buffer
containing the Discover message is received, check selected IP and
UDP headers and compute IP header and UDP message checksums. Also
send the DHCP message for option parsing and expect a successful
outcome.
---
Makefile.am
The client test program is the only one to be built so far.
---
Makefile.am | 13 +
src/dhcp/Makefile |1 +
2 files changed, 14 insertions(+)
create mode 12 src/dhcp/Makefile
diff --git a/Makefile.am b/Makefile.am
index 7bedd76..4e13370 100644
--- a/Makefile.am
+++ b/
Add functions to append and parse DHCP options. Not all options
are passed to the callback function, the ones not exposed are
pad, end, message type and overload. If indicated by the overload
option, file and sname fields will be examined for more options.
The option functions are internal to DHCP
---
src/dhcp/test-dhcp-client.c | 40
1 file changed, 40 insertions(+)
diff --git a/src/dhcp/test-dhcp-client.c b/src/dhcp/test-dhcp-client.c
index cb2f652..b226d3f 100644
--- a/src/dhcp/test-dhcp-client.c
+++ b/src/dhcp/test-dhcp-client.c
@@ -22,6 +22,7
Hi,
Here is version 3 fixed according to comments plus a few identical ones
found in the code.
Essential changes are unconditionally compiling the DHCP code and re-adding
the sd_dhcp_client_get_netmask() function due to popular demand. Prefix
length computation is turned into a support fu
On Mon, 2013-11-25 at 23:52 +0100, Lennart Poettering wrote:
> Of course, timer callbacks should only be called once, ence
> ONESHOT mode is the default -- unless you change that explicitly.
>
> If this doesn't solve the issue, I wouldn't be surprised if there was
> still a bug lurking with the sd
Do we really want to add a compat for several distributions ? Because
why not Archlinux, Ubuntu,... too ?
I used Fedora's path by default because it was in the previous script.
2013/12/8 Shawn Landden :
> On Sat, Dec 7, 2013 at 3:01 PM, Ronny Chevalier
> wrote:
>> It tries to find a suitable QEMU
If I understood correctly then the assert_return was meant to be used
only on the public library functions. I can't seem to find the
reference to it so maybe I am wrong though.
On Mon, Dec 9, 2013 at 2:09 PM, Lukasz Skalski
wrote:
> ---
> src/libsystemd-bus/bus-dump.c | 2 +-
> src/libsyst
From: Thomas Hindoe Paaboel Andersen
The static analyzer scan-build had a few issues with analysing
parts of systemd.
gpt-auto-generator.c:
scan-build could not find blkid.h. Whether it should be blkid.h or
blkid/blkid.h seems to depend on the version used. We already use
blkid/blkid.h in udev-b
In systemd 208 and latest systemd git, every user gets a new
[email protected] instance when they login. However, when their last session
exits, that service is not terminated.
After a few weeks of uptime on one of my servers, dozens of
[email protected] units are running, belonging to users that logged i
On Dec 9, 2013, at 3:33 AM, Thomas Bächler wrote:
> Am 07.12.2013 22:29, schrieb Robert Milasan:
>> From systemd-analyze dump:
>>
>>Wants: systemd-udevd.service
>>WantedBy: lvm2-activation-early.service
>>WantedBy: lvm2-activation.service
>>Before: lvm2-activatio
It appears that the .slice changed described here[1] removed all ability to
set low-level cgroups settings, is that correct?
For cgroup attributes that systemd does not natively support
(example: cpu.cfs_period_us and cpu.cfs_quota_us) it was previously
possible to set these
1. via unit files: C
On Sun, Dec 8, 2013 at 8:25 PM, Shawn Landden wrote:
> This one doesn't work. I have have a somewhat-working next patch, but
> the way epoll_wait works it actually isn't
> lazy at all, and would require EPOLLET to even do
> one-spawn-per-connection (global connection), but we can't
> do that with
'Twas brillig, and Lennart Poettering at 08/12/13 23:48 did gyre and gimble:
> On Sat, 07.12.13 18:33, Colin Guthrie ([email protected]) wrote:
>
>> Hi,
>>
>> When playing with systemd-nspawn, is there a way to override the kernel
>> command line seen inside the container. I mean it's probably
---
README | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/README b/README
index cc43953..7cd1f1d 100644
--- a/README
+++ b/README
@@ -45,6 +45,7 @@ REQUIREMENTS:
CONFIG_EPOLL
CONFIG_NET
CONFIG_SYSFS
+ CONFIG_PROC_FS
Lin
---
README | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/README b/README
index cc43953..f2a86c5 100644
--- a/README
+++ b/README
@@ -45,6 +45,7 @@ REQUIREMENTS:
CONFIG_EPOLL
CONFIG_NET
CONFIG_SYSFS
+ CONFIG_PROC_FS
Lin
On Mon, Dec 9, 2013 at 8:08 AM, Hannes Reinecke wrote:
> On 12/08/2013 07:14 PM, Robert Milasan wrote:
> 1) udev rules deal with single events only. So all information for
> the current event is directly available (set in environment
> variables etc), and there is no need to call 'udevadm info'
---
src/libsystemd-bus/bus-dump.c | 2 +-
src/libsystemd-bus/bus-error.c | 3 +--
src/libsystemd-bus/bus-kernel.c| 12 +++-
src/libsystemd-bus/bus-message.c | 12 +++-
src/libsystemd-bus/bus-signature.c | 13 -
5 files changed, 12 insertions(+), 30 dele
On Mon, 09 Dec 2013 11:33:03 +0100
"Thomas Bächler" wrote:
> Am 07.12.2013 22:29, schrieb Robert Milasan:
> > From systemd-analyze dump:
> >
> > Wants: systemd-udevd.service
> > WantedBy: lvm2-activation-early.service
> > WantedBy: lvm2-activation.service
> > Befo
Am 07.12.2013 22:29, schrieb Robert Milasan:
> From systemd-analyze dump:
>
> Wants: systemd-udevd.service
> WantedBy: lvm2-activation-early.service
> WantedBy: lvm2-activation.service
> Before: lvm2-activation-early.service
> Before: sysinit.target
>
63 matches
Mail list logo