Skip to content

Commit 241da8c

Browse files
committed
Corrected access to imagefolder
1 parent 2f1e45b commit 241da8c

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

0 Bytes
Binary file not shown.

Helpers/nc-get-label

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ imagefolder=`sed -n "s/.*\"imagefolder\".*:.*\"\(.*\)\".*/\1/p" </boot/os_config
99
flavour=`sed -n "s/.*\"flavour\".*:.*\"\(.*\)\".*/\1/p" </boot/os_config.json |sed "s/ \+/_/g"`
1010

1111
#Get the list of partition names used
12+
sudo mount -o ro /dev/mmcblk0p1 /mnt
1213
partLabels=`sed -n "s/.*\"label\".*:.*\"\(.*\)\".*/\1/p" <$imagefolder/partitions.json`
14+
sudo umount /mnt
1315

1416
#Get the number of partitions used.
1517
numparts=`echo $partLabels |wc -w`

0 commit comments

Comments
 (0)