initramfs-live-install: adapt to new mountpoint in /run
Since new poky/base components, automount mounts devices in /run/media, not /media anymore.
This commit is contained in:
parent
e626b7950b
commit
ea49b321ac
|
@ -143,7 +143,7 @@ mkdir /tgt_root
|
|||
mkdir -p /boot
|
||||
|
||||
echo "Copying rootfs files..."
|
||||
dd if=/media/$dev_name/$image_name of=$rootfs bs=1024
|
||||
dd if=/run/media/$dev_name/$image_name of=$rootfs bs=1024
|
||||
|
||||
# Handling of the target root partition
|
||||
mount $rootfs /tgt_root
|
||||
|
@ -218,7 +218,7 @@ echo "Re-mounting the root and trying to apply backup."
|
|||
mount $rootfs /tgt_root
|
||||
|
||||
echo "Finding backupfiles"
|
||||
backupfile=`find /media/$dev_name/ -name "sysmocom-backup*.tar" | head -n1`
|
||||
backupfile=`find /run/media/$dev_name/ -name "sysmocom-backup*.tar" | head -n1`
|
||||
if [ -n "$backupfile" ]; then
|
||||
if [ ! -r "$backupfile" ]; then
|
||||
echo "configurations-file $backupfile it is not readable"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
SYSMOCOM := "${@os.path.dirname(d.getVar('FILE', True))}"
|
||||
FILESEXTRAPATHS_prepend := "${SYSMOCOM}/files:"
|
||||
|
||||
PRINC = "2"
|
||||
PRINC = "3"
|
||||
|
||||
RDEPENDS_${PN} += "e2fsprogs-e2fsck"
|
||||
|
|
Loading…
Reference in New Issue