diff options
author | Nils Czernia | 2018-04-19 15:40:06 +0200 |
---|---|---|
committer | Nils Czernia | 2018-04-19 15:40:06 +0200 |
commit | 2684297f03c047a9a87062d2f5d686bd0d63ac63 (patch) | |
tree | 01528ddc18e3f7211ea17c9d93187cc81d758e34 | |
download | aur-2684297f03c047a9a87062d2f5d686bd0d63ac63.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | raspi-overlayroot.install | 12 |
4 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fbd87248cd87 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = rapsberry-overlayroot-git + pkgdesc = OverlayFS root file system for RaspberryRi + pkgver = 493f431 + pkgrel = 1 + url = https://github.com/nils-werner/arch-overlayroot + install = raspi-overlayroot.install + arch = armv6l + arch = armv7h + arch = aarch64 + license = MIT + depends = mkinitcpio + depends = arch-install-scripts + depends = sudo + source = rapsberry-overlayroot-git::git+https://github.com/nils-werner/raspi-overlayroot.git + source = raspi-overlayroot.install + sha256sums = SKIP + sha256sums = b2e7d77110b8e327d75e0e1d48053eae80afb96b53df9078fb85514cf5cdcd0e + +pkgname = rapsberry-overlayroot-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..0cbced710ff1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +* +!PKGBUILD +!.SRCINFO +!raspi-overlayroot.install +!.gitignore diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c13132df658a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# Maintainer: Nils Czernia <nils[at]czserver[dot]de> + +pkgname=rapsberry-overlayroot-git +_pkgname=rapsberry-overlayroot-git +pkgver=493f431 +pkgrel=1 +pkgdesc="OverlayFS root file system for RaspberryRi" +arch=("armv6l" "armv7h" "aarch64") +url="https://github.com/nils-werner/arch-overlayroot" +license=("MIT") +depends=("mkinitcpio" "arch-install-scripts" "sudo") +source=("${_pkgname}::git+https://github.com/nils-werner/raspi-overlayroot.git" + "raspi-overlayroot.install") +install=raspi-overlayroot.install +sha256sums=("SKIP" + "b2e7d77110b8e327d75e0e1d48053eae80afb96b53df9078fb85514cf5cdcd0e") + +pkgver() { + cd ${srcdir}/${pkgname} + git describe --always | sed "s|-|.|g" +} + +package() { + cd "$srcdir/${_pkgname}" + + install -Dm644 "initcpio-install-overlayroot" "$pkgdir/usr/lib/initcpio/install/overlayroot" + install -Dm644 "initcpio-hooks-overlayroot" "$pkgdir/usr/lib/initcpio/hooks/overlayroot" + install -Dm644 "journald-volatile-storage.conf" "$pkgdir/etc/systemd/journald.conf.d/volatile-storage.conf" + install -Dm755 "rwrootfs" "$pkgdir/usr/bin/rwrootfs" + install -Dm755 "fsck.overlay" "$pkgdir/usr/bin/fsck.overlay" + install -Dm644 "overlayroot-motd.sh" "$pkgdir/etc/profile.d/overlayroot-motd.sh" +} + diff --git a/raspi-overlayroot.install b/raspi-overlayroot.install new file mode 100644 index 000000000000..6289316f0592 --- /dev/null +++ b/raspi-overlayroot.install @@ -0,0 +1,12 @@ +post_install() { + echo " > Please add 'overlayroot' to your HOOKS array in /etc/mkinitcpio.conf and run mkinitcpio -P." +} + +post_remove() { + if grep -qs 'overlayroot' /proc/cmdline; then + echo " > Please remove 'overlayroot' from your kernel commandline." + fi + if grep -qs 'overlayroot' /etc/mkinitcpio.conf; then + echo " > Please remove 'overlayroot' from your HOOKS array in /etc/mkinitcpio.conf and run mkinitcpio -P." + fi +} |