mirror of
https://github.com/luzifer-docker/archlinux.git
synced 2024-12-20 11:01:23 +00:00
Remove tmpfiles hook hack
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
213fa07d6e
commit
029aa710d2
1 changed files with 0 additions and 16 deletions
16
mkroots.sh
16
mkroots.sh
|
@ -39,21 +39,5 @@ arch-chroot ${tmpdir} locale-gen
|
|||
arch-chroot ${tmpdir} pacman-key --init
|
||||
arch-chroot ${tmpdir} pacman-key --populate archlinux
|
||||
|
||||
# Temporarily break the tmpfiles hook which causes every pacman operation to hang forever
|
||||
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'
|
||||
[Trigger]
|
||||
Type = Path
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Target = usr/share/libalpm/hooks/*.hook
|
||||
|
||||
[Action]
|
||||
Description = Removing tmpfiles hook...
|
||||
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"
|
||||
EOF
|
||||
|
||||
# Pack rootfs
|
||||
tar --numeric-owner --xattrs --acls --exclude-from=exclude -C ${tmpdir} -c . -f archlinux.tar
|
||||
|
|
Loading…
Reference in a new issue