Partioning error in Systemd distro

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
Categories
- 301 All Categories
- 104 Announcements & News
- 51 Product News - New Product/Product Change Notice/ End-of-life
- 184 Welcome Developers!
- 52 Unboxing & Project Sharing
- 24 Tech Updates
- 547 UP Products
- 1 UP Xtreme i12
- UP Squared Pro 7000
- 1 UP Element i12 Edge
- 10 UP Squared V2
- 25 UP 4000
- 23 UP Xtreme i11
- 34 UP Squared 6000
- 44 UP Squared Pro
- 140 UP Xtreme
- 819 UP Squared
- 1.4K UP Board
- 89 UP Core Plus
- 221 UP Core
- 3 UP Xtreme Lite
- 43 UP AI Edge
- 215 Starter Kits & Peripheral