Commit 8fdcf931 authored by Natanael Copa's avatar Natanael Copa

initram: allow user o specify filesystem in alpine_dev boot param

parent 5f782a70
...@@ -74,6 +74,10 @@ for i in `cat /proc/cmdline` ; do ...@@ -74,6 +74,10 @@ for i in `cat /proc/cmdline` ; do
done done
ALPINE_DEV=${KOPT_alpine_dev%%:*} ALPINE_DEV=${KOPT_alpine_dev%%:*}
ALPINE_DEV_FS=${KOPT_alpine_dev##*:}
if [ "$ALPINE_DEV_FS" = "$ALPINE_DEV" ]; then
unset ALPINE_DEV_FS
fi
ALPINE_MNT=/media/$ALPINE_DEV ALPINE_MNT=/media/$ALPINE_DEV
# hide kernel messages # hide kernel messages
...@@ -109,7 +113,11 @@ eend 0 ...@@ -109,7 +113,11 @@ eend 0
# locate boot media and mount it # locate boot media and mount it
ebegin "Mounting boot media" ebegin "Mounting boot media"
mount $ALPINE_MNT >/dev/null 2>&1 mkdir -p $ALPINE_MNT
if [ -n "$ALPINE_DEV_FS" ]; then
mount_opts="-t $ALPINE_DEV_FS"
fi
mount $mount_opts /dev/$ALPINE_DEV $ALPINE_MNT >/dev/null 2>&1
eend $? eend $?
ebegin "Mounting loopback device for kernel modules" ebegin "Mounting loopback device for kernel modules"
modprobe loop modprobe loop
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment