Browse Source

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

This fixes mounting ubifs filesystems.

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
neels/inmarsat
Jan Luebbe 6 years ago
committed by Holger Hans Peter Freyther
parent
commit
dafdcb0404
  1. 2
      recipes-core/initrdscripts/initramfs-rauc-slot.bb
  2. 5
      recipes-core/initrdscripts/initramfs-rauc-slot/overlay

2
recipes-core/initrdscripts/initramfs-rauc-slot.bb

@ -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

5
recipes-core/initrdscripts/initramfs-rauc-slot/overlay

@ -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!"

Loading…
Cancel
Save