mirror of
https://github.com/luzifer-docker/archlinux.git
synced 2024-12-29 23:21:15 +00:00
Prevent breaking the 01-remove-tmpfiles.hook during the hook
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
57c1869f99
commit
213fa07d6e
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ arch-chroot ${tmpdir} pacman-key --init
|
||||||
arch-chroot ${tmpdir} pacman-key --populate archlinux
|
arch-chroot ${tmpdir} pacman-key --populate archlinux
|
||||||
|
|
||||||
# Temporarily break the tmpfiles hook which causes every pacman operation to hang forever
|
# Temporarily break the tmpfiles hook which causes every pacman operation to hang forever
|
||||||
sed -i 's!^Exec.*!Exec = /usr/bin/true!' ${tmpdir}/usr/share/libalpm/hooks/30-systemd-tmpfiles.hook
|
sed -i 's!^Exec = .*/systemd-hook tmpfiles$!Exec = /usr/bin/true!' ${tmpdir}/usr/share/libalpm/hooks/*.hook
|
||||||
|
|
||||||
cat >${tmpdir}/usr/share/libalpm/hooks/01-remove-tmpfiles.hook <<-'EOF'
|
cat >${tmpdir}/usr/share/libalpm/hooks/01-remove-tmpfiles.hook <<-'EOF'
|
||||||
[Trigger]
|
[Trigger]
|
||||||
|
@ -52,7 +52,7 @@ cat >${tmpdir}/usr/share/libalpm/hooks/01-remove-tmpfiles.hook <<-'EOF'
|
||||||
[Action]
|
[Action]
|
||||||
Description = Removing tmpfiles hook...
|
Description = Removing tmpfiles hook...
|
||||||
When = PostTransaction
|
When = PostTransaction
|
||||||
Exec = /usr/bin/bash -exc "/usr/bin/sed -i 's!^Exec = .*/systemd-hook tmpfiles!Exec = /usr/bin/true!' /usr/share/libalpm/hooks/*.hook"
|
Exec = /usr/bin/bash -exc "/usr/bin/sed -i 's!^Exec = .*/systemd-hook tmpfiles$!Exec = /usr/bin/true!' /usr/share/libalpm/hooks/*.hook"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Pack rootfs
|
# Pack rootfs
|
||||||
|
|
Loading…
Reference in a new issue