Mail archive
alpine-devel

Re: [alpine-devel] [PATCH 2/4] mkinitfs: add /run to the initfs base image

From: Natanael Copa <ncopa_at_alpinelinux.org>
Date: Tue, 22 Sep 2015 16:04:58 +0200

On Sun, 13 Sep 2015 15:41:47 -0500
Jesse Young <jlyo_at_jlyo.org> wrote:

> mdadm otherwise complains about not being able to lock
> /run/mdadm/map.lock
> ---
> mkinitfs.in | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/mkinitfs.in b/mkinitfs.in
> index 04dc99c..ced6792 100755
> --- a/mkinitfs.in
> +++ b/mkinitfs.in
> _at_@ -36,7 +36,7 @@ feature_files() {
>
> initfs_base() {
> local i= dirs= glob= file=
> - for i in dev proc sys sbin bin .modloop lib/modules media/cdrom \
> + for i in dev proc sys sbin bin run .modloop lib/modules media/cdrom \
> etc/apk media/floppy media/usb newroot; do
> dirs="$dirs $tmpdir/$i"
> done

Thanks for this fix. I am about to refactor the way the root is
detected and not having /run made mdadm not coldplug. It took a while
for me to realize what was going bad.

I think we also need mkdir /run in initramfs-init.

Thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Tue Sep 22 2015 - 16:04:58 GMT