poky/scripts/lib/wic/canned-wks
Alexey Brodkin ca4a8eea62 wic: sdimage-bootpart: Use mmcblk0 drive instead of bogus mmcblk
Apparently either nobody ever used sdimage-bootpart.wks
or fstab was kept untouched due to "--no-fstab-update" usage as
some boards like IMX may have, see [1].

Otherwise addition of the following line to the target's fstab:
---------------------->8-----------------
/dev/mmcblkp1   /boot   vfat    defaults        0       0
---------------------->8-----------------

gets us unusable target:
---------------------->8-----------------
[*     ] A start job is running for dev-mmcblkp1.device (23s / 1min 30s)
[ TIME ] Timed out waiting for device dev-mmcblkp1.device.
[DEPEND] Dependency failed for /boot.
[DEPEND] Dependency failed for Local File Systems.

You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"
to boot into default mode.
Press Enter for maintenance
---------------------->8-----------------

Fix it with use of "mmcblk0" device name.

[1] https://lists.yoctoproject.org/pipermail/meta-freescale/2018-February/022156.html

(From OE-Core rev: 57a925dbd949e488980b02896106efd82bf47ed2)

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Maciej Borzecki <maciej.borzecki@open-rnd.pl>
Cc: Maciek Borzecki <maciek.borzecki@gmail.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-16 15:35:07 +00:00
..
common.wks.inc wic: Switch to using --use-uuid by default 2017-07-30 08:46:20 +01:00
directdisk-bootloader-config.cfg wic: Switch to using --use-uuid by default 2017-07-30 08:46:20 +01:00
directdisk-bootloader-config.wks wic: move parts of canned .wks into common.wks.inc 2016-01-20 17:07:13 +00:00
directdisk-gpt.wks directdisk*.wks: add serial console support 2016-09-22 11:13:24 +01:00
directdisk-multi-rootfs.wks directdisk*.wks: add serial console support 2016-09-22 11:13:24 +01:00
directdisk.wks directdisk*.wks: add serial console support 2016-09-22 11:13:24 +01:00
efi-bootdisk.wks.in wic: add wks file to make use of exclude-path functionality 2018-03-06 06:35:42 -08:00
mkefidisk.wks canned-wks: use GPT partition table 2016-10-11 08:27:27 +01:00
mkhybridiso.wks wic: isoimage-isohybrid: debloat image of redundant rootfs 2018-06-29 11:07:45 +01:00
qemux86-directdisk.wks qemux86-directdisk: remove mem= parameter 2018-10-04 14:31:06 +01:00
sdimage-bootpart.wks wic: sdimage-bootpart: Use mmcblk0 drive instead of bogus mmcblk 2019-01-16 15:35:07 +00:00
systemd-bootdisk.wks wic: Update canned-wks for systemd to use UUID everywhere 2017-11-08 22:24:04 +00:00