initramfs-rauc-slot: pass the rootfstype kernel parameter to mount

This fixes mounting ubifs filesystems.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
This commit is contained in:
Jan Luebbe 2015-05-31 20:08:59 +02:00 committed by Holger Hans Peter Freyther
parent 81ff4d7d75
commit dafdcb0404
2 changed files with 5 additions and 2 deletions

View File

@ -2,7 +2,7 @@ SUMMARY = "Modular initramfs system components for RAUC"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r0"
PR = "r1"
inherit allarch

View File

@ -10,7 +10,10 @@ overlay_run() {
if [ -z "$bootparam_root" ]; then
fatal "ERROR: No root device was provided."
fi
mount -o ro $bootparam_root /slot || fatal "Failed!"
if [ -n "$bootparam_rootfstype" ]; then
mount_arg="-t $bootparam_rootfstype"
fi
mount $mount_arg -o ro $bootparam_root /slot || fatal "Failed!"
info "Mounting squashfs..."
mkdir /ro-root
mount -t squashfs -o loop=/dev/loop0,ro /slot/rootfs.squashfs /ro-root || fatal "Failed!"