For discussion of Alpine Linux development and developer support

5 2

[alpine-devel] [PATCH 1/4] features: raid: add mdadm files

Jesse Young
Details
Message ID
<1442176909-6089-1-git-send-email-jlyo@jlyo.org>
Sender timestamp
1442176906
DKIM signature
missing
Download raw message
Patch: +3 -0
---
 Makefile              | 1 +
 features.d/raid.files | 2 ++
 2 files changed, 3 insertions(+)
 create mode 100644 features.d/raid.files

diff --git a/Makefile b/Makefile
index ab50e8e..dc013de 100644
--- a/Makefile
+++ b/Makefile
@@ -32,6 +32,7 @@ CONF_FILES	:= mkinitfs.conf \
 		features.d/network.files \
 		features.d/network.modules \
 		features.d/ocfs2.modules \
+		features.d/raid.files\
 		features.d/raid.modules \
 		features.d/reiserfs.modules \
 		features.d/scsi.modules \
diff --git a/features.d/raid.files b/features.d/raid.files
new file mode 100644
index 0000000..c393dc4
--- /dev/null
+++ b/features.d/raid.files
@@ -0,0 +1,2 @@
+/etc/mdadm.conf
+/sbin/mdadm
-- 
2.4.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

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

Jesse Young
Details
Message ID
<1442176909-6089-2-git-send-email-jlyo@jlyo.org>
In-Reply-To
<1442176909-6089-1-git-send-email-jlyo@jlyo.org> (view parent)
Sender timestamp
1442176907
DKIM signature
missing
Download raw message
Patch: +1 -1
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
@@ -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
-- 
2.4.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] [PATCH 3/4] init: make mdadm quiet

Jesse Young
Details
Message ID
<1442176909-6089-3-git-send-email-jlyo@jlyo.org>
In-Reply-To
<1442176909-6089-1-git-send-email-jlyo@jlyo.org> (view parent)
Sender timestamp
1442176908
DKIM signature
missing
Download raw message
Patch: +3 -1
---
 initramfs-init.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/initramfs-init.in b/initramfs-init.in
index d687e64..78500aa 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -227,12 +227,14 @@ setup_inittab_console(){
 
 start_raid() {
 	local n= i=
+	local mdadm_flags=
 	case "$KOPT_root" in
 		/dev/md*) n=${KOPT_root#/dev/md} ;;
 	esac
 	case "$KOPT_autoraid" in
 		[0-9]*) n="$n $(echo $KOPT_autoraid | tr ',' ' ')" ;;
 	esac
+	[ "$KOPT_quiet" = yes ] && mdadm_flags="$mdadm_flags -q"
 	# if kernel can autostart the raid he will
 	for i in $n; do
 		mknod /dev/md$i b 9 $i
@@ -241,7 +243,7 @@ start_raid() {
 	# kernel cannot autostart newer versions of mdadm metadata
 	# so we also check if mdadm binary is there
 	if [ -x /sbin/mdadm ]; then
-		mdadm --assemble --scan
+		mdadm $mdadm_flags --assemble --scan
 	fi
 }
 
-- 
2.4.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

[alpine-devel] [PATCH 4/4] lvm: support snapshot LVs

Jesse Young
Details
Message ID
<1442176909-6089-4-git-send-email-jlyo@jlyo.org>
In-Reply-To
<1442176909-6089-1-git-send-email-jlyo@jlyo.org> (view parent)
Sender timestamp
1442176909
DKIM signature
missing
Download raw message
Patch: +1 -0
---
 features.d/lvm.modules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/features.d/lvm.modules b/features.d/lvm.modules
index 92f0721..3af8ef9 100644
--- a/features.d/lvm.modules
+++ b/features.d/lvm.modules
@@ -1 +1,2 @@
 kernel/drivers/md/dm-mod.ko
+kernel/drivers/md/dm-snapshot.ko
-- 
2.4.1



---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---
Natanael Copa
Details
Message ID
<20150922155839.2b308d1c@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1442176909-6089-1-git-send-email-jlyo@jlyo.org> (view parent)
Sender timestamp
1442930319
DKIM signature
missing
Download raw message
On Sun, 13 Sep 2015 15:41:46 -0500
Jesse Young <jlyo@jlyo.org> wrote:

> ---
>  Makefile              | 1 +
>  features.d/raid.files | 2 ++
>  2 files changed, 3 insertions(+)
>  create mode 100644 features.d/raid.files

I applied this and the other 3 to mkinitfs git.

Thanks!

-nc


---
Unsubscribe:  alpine-devel+unsubscribe@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---

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

Natanael Copa
Details
Message ID
<20150922160458.00ff3cd0@ncopa-desktop.alpinelinux.org>
In-Reply-To
<1442176909-6089-2-git-send-email-jlyo@jlyo.org> (view parent)
Sender timestamp
1442930698
DKIM signature
missing
Download raw message
On Sun, 13 Sep 2015 15:41:47 -0500
Jesse Young <jlyo@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
> @@ -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@lists.alpinelinux.org
Help:         alpine-devel+help@lists.alpinelinux.org
---