Skip to content

Commit

Permalink
Introduce a fake mkinitcpio
Browse files Browse the repository at this point in the history
  • Loading branch information
NeroReflex committed Jun 17, 2024
1 parent 89c382d commit 4d6d2ca
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkgs/chimeraos-fake-mkinitcpio/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
pkgname=chimeraos-fake-mkinitcpio
pkgver=39.2
pkgrel=2
pkgdesc="A stub implementation of mkinitcpio that does nothing except providing the executable that does nothing"
arch=('any')
url='https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio'
license=('GPL-2.0-only')
depends=()
provides=('initramfs')
conflicts=('mkinitcpio')
source=('mkinitcpio')
b2sums=('4b40ab2908ab1ad57e72e22f6f74f4d22d3bb09a42d64956a64c48cf0dadb645da4c4e3edb31fa3068c909a1f03c0fa9fd534cb7159d6d56526d5dbb3104b9b0')

package() {
mkdir -p "$pkgdir/usr/bin"
install -m 755 "$srcdir/mkinitcpio" "$pkgdir/usr/bin"
}

6 changes: 6 additions & 0 deletions pkgs/chimeraos-fake-mkinitcpio/mkinitcpio
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

# The pre-refactor frzr will call the target image mkinitcpio.
# We want to avoid generating an error, yet we want this tool to do nothing as
# device-quirks is now installed in a deployment migration.
echo "[WARNING] Fake mkinitcpio called."

0 comments on commit 4d6d2ca

Please sign in to comment.