Partioning error in Systemd distro

MunawarMunawar New Member Posts: 2

Hello,

I am using Up-board, I have built the image using Yocto-Pyro.
By default the Image is managed by systemV, I have added systemd by adding the line DISTRO_FEATURES_append = " systemd" in my local.conf file.
I build the image, the image booted and worked.
Now what I am trying to do is to make partition in external SD-card using parted utility. The partions fs is ext4.
(Partioning script)
yes | /usr/sbin/parted --script /dev/sda -- \
mklabel gpt \
mkpart primary ext4 1Mib 256Mib \
mkpart primary ext4 256Mib 512Mib \
mkpart primary ext4 512Mib 640Mib \
mkpart primary ext4 640Mib 768Mib \
mkpart primary ext4 768Mib 100%

While doing this I am getting an strange error that I could not figure out.
Error: Partition(s) 1, 2, 3, 4, 5 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

Does anybody know how to encounter this error?

Thanks
Munawar Ali

Sign In or Register to comment.