Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for overlayfs backed on persistent device (e.g. USB key) #11

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes for aarch64
Signed-off-by: Renaud Métrich <renaud.metrich@laposte.net>
Renaud Métrich committed Sep 19, 2019
commit 01ee4f71abd8cfd381da6e043f6f8c88fb04bd6e
4 changes: 2 additions & 2 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -34,9 +34,9 @@ sha256sums=(
# 'overlayroot-motd.sh'
'e2e917ab85d44abfc8e4c504cd8925d6fec5d26c452198303e2238464552e9a1'
# 'mkinitcpio-overlayroot.conf'
'0954c40ee94824707ed0d4bf65bda0be1b3e57c52dd8cd2d12df23bf597ae6a2'
'53688c23282caeecfb9a127dc8649535260fcd0e7d3372a2dffa06a765e1153a'
# 'mkinitcpio-overlayroot.preset'
'7ebdad6c610b8d35dab94343b7a98fb7dca4534aa43c49680b346919496fd1e8'
'9c0293c1edb3f9662b09a5618361457934a82f04ed8aef11786ed54abe33dab7'
# '90-overlayroot.hook'
'0a81b378572ea6e2de20d9b52f2a1f6271a98aae31fe01f6c4a386df9ddf56aa'
)
1 change: 1 addition & 0 deletions mkinitcpio-overlayroot.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
. /etc/mkinitcpio.conf

MODULES+=( overlay )
BINARIES+=( find mount rm tar xargs )
HOOKS+=( overlayroot )
17 changes: 16 additions & 1 deletion mkinitcpio-overlayroot.preset
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
. /etc/mkinitcpio.d/linux-raspberrypi.preset
_overlayroot_found=0
for file in /etc/mkinitcpio.d/*.preset; do
if grep -q "^ALL_" $file; then
. $file
_overlayroot_found=1
break
fi
done

if [ $_overlayroot_found -eq 0 ]; then
echo "Failed to find base preset!" >&2
exit 1
fi
unset _overlayroot_found

PRESETS=('default')

default_config="/etc/mkinitcpio-overlayroot.conf"
default_image="/boot/initramfs-overlayroot.img"