diff --git a/recipes-diya/initramfs/files/diya-update b/recipes-diya/initramfs/files/diya-update index 568990b..9bddd03 100755 --- a/recipes-diya/initramfs/files/diya-update +++ b/recipes-diya/initramfs/files/diya-update @@ -7,7 +7,7 @@ DEFAULT_KERNEL_NAME="Image-$MACHINE.bin" DEFAULT_INITRAMFS_NAME="recovery-$MACHINE.cpio.gz" UPDATE_SRC_PATH="/home/diya/.update" ROOTFS_DEV="/dev/mmcblk0p2" -SUPPORTED_COMMAND="rootfs kernel initramfs" +SUPPORTED_COMMAND="rootfs kernel initramfs all" TMP_MOUNT="/tmp/rootfs" @@ -123,13 +123,16 @@ fi case "$cmd" in rootfs) - rootfs $1 + rootfs $file ;; kernel) - kernel $1 + kernel $file ;; initramfs) - initramfs $1 + initramfs $file + ;; + all) + rootfs && kernel && initramfs ;; *) cat << EOF diff --git a/recipes-diya/initramfs/recovery-boot_0.1.bb b/recipes-diya/initramfs/recovery-boot_0.1.bb index e10f8cb..33a0552 100644 --- a/recipes-diya/initramfs/recovery-boot_0.1.bb +++ b/recipes-diya/initramfs/recovery-boot_0.1.bb @@ -35,7 +35,8 @@ EOF ln -sf /sbin/diya-update ${D}/sbin/diya-update-rootfs ln -sf /sbin/diya-update ${D}/sbin/diya-update-kernel ln -sf /sbin/diya-update ${D}/sbin/diya-update-initramfs - + ln -sf /sbin/diya-update ${D}/sbin/diya-update-all + # Create device nodes expected by some kernels in initramfs # before even executing /init. install -d ${D}/dev