mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
TEST-65: check cat-config operation in chroot
This verifies the fix in 2075b6dd39.
This commit is contained in:
@@ -158,6 +158,7 @@ BASICTOOLS=(
|
||||
cat
|
||||
chmod
|
||||
chown
|
||||
chroot
|
||||
cmp
|
||||
cryptsetup
|
||||
cut
|
||||
|
||||
@@ -139,6 +139,16 @@ systemd-analyze cat-config systemd/system.conf systemd/journald.conf >/dev/null
|
||||
systemd-analyze cat-config systemd/system.conf foo/bar systemd/journald.conf >/dev/null
|
||||
systemd-analyze cat-config foo/bar
|
||||
|
||||
if [[ ! -v ASAN_OPTIONS ]]; then
|
||||
# check that systemd-analyze cat-config paths work in a chroot
|
||||
mkdir -p /tmp/root
|
||||
mount --bind / /tmp/root
|
||||
systemd-analyze cat-config systemd/system-preset >/tmp/out1
|
||||
chroot /tmp/root systemd-analyze cat-config systemd/system-preset >/tmp/out2
|
||||
diff /tmp/out{1,2}
|
||||
fi
|
||||
|
||||
# verify
|
||||
mkdir -p /tmp/img/usr/lib/systemd/system/
|
||||
mkdir -p /tmp/img/opt/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user