mirror of
https://github.com/systemd/systemd
synced 2026-03-18 19:14:46 +01:00
Compare commits
6 Commits
fd8d4026d4
...
a6ef858850
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a6ef858850 | ||
|
|
4a74a48c23 | ||
|
|
fc48bf0c6b | ||
|
|
0eaddf8c82 | ||
|
|
57202fd181 | ||
|
|
75890d949f |
2
NEWS
2
NEWS
@ -4635,7 +4635,7 @@ CHANGES WITH 255:
|
|||||||
* A new component "systemd-storagetm" has been added, which exposes all
|
* A new component "systemd-storagetm" has been added, which exposes all
|
||||||
local block devices as NVMe-TCP devices, fully automatically. It's
|
local block devices as NVMe-TCP devices, fully automatically. It's
|
||||||
hooked into a new target unit storage-target-mode.target that is
|
hooked into a new target unit storage-target-mode.target that is
|
||||||
suppsoed to be booted into via
|
supposed to be booted into via
|
||||||
rd.systemd.unit=storage-target-mode.target on the kernel command
|
rd.systemd.unit=storage-target-mode.target on the kernel command
|
||||||
line. This is intended to be used for installers and debugging to
|
line. This is intended to be used for installers and debugging to
|
||||||
quickly get access to the local disk. It's inspired by MacOS "target
|
quickly get access to the local disk. It's inspired by MacOS "target
|
||||||
|
|||||||
@ -119,13 +119,15 @@ r - 500-900
|
|||||||
bearing the same name unless the ID field specifies it. The account will be
|
bearing the same name unless the ID field specifies it. The account will be
|
||||||
created disabled, so that logins are not allowed.</para>
|
created disabled, so that logins are not allowed.</para>
|
||||||
|
|
||||||
|
<xi:include href="version-info.xml" xpointer="v215"/>
|
||||||
|
|
||||||
<para>Type <varname>u</varname> may be suffixed with an exclamation mark (<literal>u!</literal>) to
|
<para>Type <varname>u</varname> may be suffixed with an exclamation mark (<literal>u!</literal>) to
|
||||||
create a fully locked account. This is recommended, since logins should typically not be allowed
|
create a fully locked account. This is recommended, since logins should typically not be allowed
|
||||||
for system users. With or without the exclamation mark an invalid password is set. For
|
for system users. With or without the exclamation mark an invalid password is set. For
|
||||||
<literal>u!</literal>, the account is also locked, which makes a difference for non-password forms
|
<literal>u!</literal>, the account is also locked, which makes a difference for non-password forms
|
||||||
of authentication, such as SSH or similar.</para>
|
of authentication, such as SSH or similar.</para>
|
||||||
|
|
||||||
<xi:include href="version-info.xml" xpointer="v215"/></listitem>
|
<xi:include href="version-info.xml" xpointer="v257"/></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
|
|||||||
@ -365,7 +365,10 @@
|
|||||||
<listitem><para>The os-release description (the <literal>.osrel</literal> section). The argument
|
<listitem><para>The os-release description (the <literal>.osrel</literal> section). The argument
|
||||||
may be a literal string, or <literal>@</literal> followed by a path name. If not specified, the
|
may be a literal string, or <literal>@</literal> followed by a path name. If not specified, the
|
||||||
<citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> file
|
<citerefentry><refentrytitle>os-release</refentrytitle><manvolnum>5</manvolnum></citerefentry> file
|
||||||
will be picked up from the host system.</para>
|
will be picked up from the host system. If explicitly set to an empty string, the ".osrel" section
|
||||||
|
is omitted from the UKI (this is not recommended in most cases, and causes the resulting artifact
|
||||||
|
to not be recognized as a UKI by other tools like <command>kernel-install</command>
|
||||||
|
and <command>bootctl</command>).</para>
|
||||||
|
|
||||||
<xi:include href="version-info.xml" xpointer="v253"/></listitem>
|
<xi:include href="version-info.xml" xpointer="v253"/></listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
Package: src:qemu:any
|
|
||||||
Pin: release a=noble-proposed
|
|
||||||
Pin-Priority: 550
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
Types: deb deb-src
|
|
||||||
URIs: http://archive.ubuntu.com/ubuntu/
|
|
||||||
Suites: noble-proposed
|
|
||||||
Components: main universe
|
|
||||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
|
||||||
@ -641,7 +641,7 @@ def test_efi_signing_pesign(kernel_initrd, tmp_path):
|
|||||||
|
|
||||||
shutil.rmtree(tmp_path)
|
shutil.rmtree(tmp_path)
|
||||||
|
|
||||||
def test_inspect(kernel_initrd, tmp_path, capsys):
|
def test_inspect(kernel_initrd, tmp_path, capsys, osrel=True):
|
||||||
if kernel_initrd is None:
|
if kernel_initrd is None:
|
||||||
pytest.skip('linux+initrd not found')
|
pytest.skip('linux+initrd not found')
|
||||||
if not shutil.which('sbsign'):
|
if not shutil.which('sbsign'):
|
||||||
@ -653,7 +653,7 @@ def test_inspect(kernel_initrd, tmp_path, capsys):
|
|||||||
|
|
||||||
output = f'{tmp_path}/signed2.efi'
|
output = f'{tmp_path}/signed2.efi'
|
||||||
uname_arg='1.2.3'
|
uname_arg='1.2.3'
|
||||||
osrel_arg='Linux'
|
osrel_arg='Linux' if osrel else ''
|
||||||
cmdline_arg='ARG1 ARG2 ARG3'
|
cmdline_arg='ARG1 ARG2 ARG3'
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
@ -680,8 +680,12 @@ def test_inspect(kernel_initrd, tmp_path, capsys):
|
|||||||
|
|
||||||
text = capsys.readouterr().out
|
text = capsys.readouterr().out
|
||||||
|
|
||||||
|
if osrel:
|
||||||
expected_osrel = f'.osrel:\n size: {len(osrel_arg)}'
|
expected_osrel = f'.osrel:\n size: {len(osrel_arg)}'
|
||||||
assert expected_osrel in text
|
assert expected_osrel in text
|
||||||
|
else:
|
||||||
|
assert '.osrel:' not in text
|
||||||
|
|
||||||
expected_cmdline = f'.cmdline:\n size: {len(cmdline_arg)}'
|
expected_cmdline = f'.cmdline:\n size: {len(cmdline_arg)}'
|
||||||
assert expected_cmdline in text
|
assert expected_cmdline in text
|
||||||
expected_uname = f'.uname:\n size: {len(uname_arg)}'
|
expected_uname = f'.uname:\n size: {len(uname_arg)}'
|
||||||
@ -694,6 +698,9 @@ def test_inspect(kernel_initrd, tmp_path, capsys):
|
|||||||
|
|
||||||
shutil.rmtree(tmp_path)
|
shutil.rmtree(tmp_path)
|
||||||
|
|
||||||
|
def test_inspect_no_osrel(kernel_initrd, tmp_path, capsys):
|
||||||
|
test_inspect(kernel_initrd, tmp_path, capsys, osrel=False)
|
||||||
|
|
||||||
@pytest.mark.skipif(not slow_tests, reason='slow')
|
@pytest.mark.skipif(not slow_tests, reason='slow')
|
||||||
def test_pcr_signing(kernel_initrd, tmp_path):
|
def test_pcr_signing(kernel_initrd, tmp_path):
|
||||||
if kernel_initrd is None:
|
if kernel_initrd is None:
|
||||||
|
|||||||
@ -1477,6 +1477,9 @@ def make_uki(opts: UkifyConfig) -> None:
|
|||||||
'.profile',
|
'.profile',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if not opts.os_release:
|
||||||
|
to_import.remove('.osrel')
|
||||||
|
|
||||||
for profile in opts.join_profiles:
|
for profile in opts.join_profiles:
|
||||||
pe = pefile.PE(profile, fast_load=True)
|
pe = pefile.PE(profile, fast_load=True)
|
||||||
prev_len = len(uki.sections)
|
prev_len = len(uki.sections)
|
||||||
@ -2412,7 +2415,12 @@ def finalize_options(opts: argparse.Namespace) -> None:
|
|||||||
|
|
||||||
opts.os_release = resolve_at_path(opts.os_release)
|
opts.os_release = resolve_at_path(opts.os_release)
|
||||||
|
|
||||||
if not opts.os_release and opts.linux:
|
if opts.os_release == '':
|
||||||
|
# If --os-release= with an empty string was passed, treat that as
|
||||||
|
# explicitly disabling the .osrel section, and do not fallback to the
|
||||||
|
# system's os-release files.
|
||||||
|
pass
|
||||||
|
elif opts.os_release is None and opts.linux:
|
||||||
p = Path('/etc/os-release')
|
p = Path('/etc/os-release')
|
||||||
if not p.exists():
|
if not p.exists():
|
||||||
p = Path('/usr/lib/os-release')
|
p = Path('/usr/lib/os-release')
|
||||||
|
|||||||
@ -61,7 +61,7 @@ openssl req -x509 -nodes -newkey rsa:2048 -sha256 -days 7 \
|
|||||||
chown -R systemd-journal-remote /run/systemd/journal-remote-tls
|
chown -R systemd-journal-remote /run/systemd/journal-remote-tls
|
||||||
|
|
||||||
# Configure journal-upload to upload journals to journal-remote without client certificates
|
# Configure journal-upload to upload journals to journal-remote without client certificates
|
||||||
mkdir -p /run/systemd/journal-{remote,upload}.conf.d
|
mkdir -pZ /run/systemd/journal-{remote,upload}.conf.d
|
||||||
cat >/run/systemd/journal-remote.conf.d/99-test.conf <<EOF
|
cat >/run/systemd/journal-remote.conf.d/99-test.conf <<EOF
|
||||||
[Remote]
|
[Remote]
|
||||||
SplitMode=host
|
SplitMode=host
|
||||||
|
|||||||
@ -13,6 +13,7 @@ if ! can_do_rootless_nspawn; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
at_exit() {
|
at_exit() {
|
||||||
|
rm -rf /home/testuser/.local/state/machines/.tar-file* ||:
|
||||||
rm -rf /home/testuser/.local/state/machines/zurps ||:
|
rm -rf /home/testuser/.local/state/machines/zurps ||:
|
||||||
rm -rf /home/testuser/.local/state/machines/nurps ||:
|
rm -rf /home/testuser/.local/state/machines/nurps ||:
|
||||||
rm -rf /home/testuser/.local/state/machines/kurps ||:
|
rm -rf /home/testuser/.local/state/machines/kurps ||:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user