Skip to content

Commit b61bef3

Browse files
committed
Use absolute paths to fix "not found" errors when using sudo.
1 parent 7c97acc commit b61bef3

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

meta/recipes-core/resize-rootfs/resize-rootfs/resize-rootfs.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
mkdir -p /var/lib/resize-rootfs
44

55
do_resize_partition() {
6-
parted -s /dev/mmcblk0 -- resizepart 2 100%
6+
/usr/sbin/parted -s /dev/mmcblk0 -- resizepart 2 100%
77
touch /var/lib/resize-rootfs/partition_resized
88
reboot
99
}
@@ -17,10 +17,9 @@ if [ -f /var/lib/resize-rootfs/partition_resized ]; then
1717
do_resize_fs
1818

1919
# disable starting resize-rootfs on boot
20-
update-rc.d -f resize-rootfs remove
20+
/usr/sbin/update-rc.d -f resize-rootfs remove
2121
else
2222
# enable starting resize-rootfs on boot
23-
update-rc.d resize-rootfs defaults
23+
/usr/sbin/update-rc.d resize-rootfs defaults
2424
do_resize_partition
2525
fi
26-

meta/recipes-core/resize-rootfs/resize-rootfs_1.0.0.bb renamed to meta/recipes-core/resize-rootfs/resize-rootfs_1.0.1.bb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ FILES_${PN} = " \
2525
/etc/init.d/resize-rootfs \
2626
/usr/bin/resize-rootfs \
2727
"
28-

0 commit comments

Comments
 (0)