Skip to content

Commit

Permalink
Merge pull request #564 from pavel-demin/develop
Browse files Browse the repository at this point in the history
add alpine-init.patch
  • Loading branch information
pavel-demin authored Sep 19, 2017
2 parents 7ae94b9 + 3de28c3 commit b9b88f8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/alpine-init.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- init.old
+++ init
@@ -428,9 +428,9 @@ fi

# locate boot media and mount it
ebegin "Mounting boot media"
-nlplug-findfs $cryptopts -p /sbin/mdev ${KOPT_debug_init:+-d} \
- ${KOPT_usbdelay:+-t $(( $KOPT_usbdelay * 1000 ))} \
- $repoopts -a /tmp/apkovls
+mkdir -p /media/mmcblk0p1
+mount -o ro /dev/mmcblk0p1 /media/mmcblk0p1
+ls /media/mmcblk0p1/*.apkovl.tar.gz > /tmp/apkovls
eend $?

# early console?
1 change: 1 addition & 0 deletions scripts/alpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ gzip -dc ../alpine-uboot/boot/initramfs-hardened | cpio -vid
rm -rf etc/modprobe.d
rm -rf lib/firmware
rm -rf lib/modules
patch -p 0 < ../patches/alpine-init.patch
find . | sort | cpio --quiet -o -H newc | gzip -9 > ../initrd.gz

cd ..
Expand Down

0 comments on commit b9b88f8

Please sign in to comment.