Message ID | 20220301000527.765598-1-festevam@gmail.com |
---|---|
State | Accepted |
Headers | show |
Series | [meta-swupdate-boards] 09-swupdate-args: Use 'swupdate -g' to retrieve the rootfs | expand |
On 01.03.22 01:05, Fabio Estevam wrote: > Use 'swupdate -g' to retrieve the rootfs as it is a simpler method. > > Signed-off-by: Fabio Estevam <festevam@gmail.com> > --- > .../swupdate/swupdate/beaglebone-yocto/09-swupdate-args | 2 +- > recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args | 2 +- > .../swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args | 2 +- > recipes-support/swupdate/swupdate/wandboard/09-swupdate-args | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args b/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args > index ceb4d77a6c3f..fc2fe9390a64 100644 > --- a/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args > +++ b/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args > @@ -1,4 +1,4 @@ > -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` > +rootfs=`swupdate -g` > > if [ $rootfs == '/dev/mmcblk1p2' ];then > selection="-e stable,copy2" > diff --git a/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args b/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args > index 031d151dc57f..243aded922d4 100644 > --- a/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args > +++ b/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args > @@ -1,4 +1,4 @@ > -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` > +rootfs=`swupdate -g` > > if [ $rootfs == '/dev/mmcblk0p2' ];then > selection="-e stable,copy2" > diff --git a/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args b/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args > index bca35f938541..71e708301345 100644 > --- a/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args > +++ b/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args > @@ -1,4 +1,4 @@ > -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` > +rootfs=`swupdate -g` > > if [ $rootfs == '/dev/mmcblk0p2' ];then > selection="-e stable,copy2" > diff --git a/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args b/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args > index 0855d23696ff..4e9fecdf7222 100644 > --- a/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args > +++ b/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args > @@ -1,4 +1,4 @@ > -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` > +rootfs=`swupdate -g` > > if [ $rootfs == '/dev/mmcblk2p1' ];then > selection="-e stable,copy2" Applied to -master, thanks ! Best regards, Stefano
diff --git a/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args b/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args index ceb4d77a6c3f..fc2fe9390a64 100644 --- a/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/beaglebone-yocto/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk1p2' ];then selection="-e stable,copy2" diff --git a/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args b/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args index 031d151dc57f..243aded922d4 100644 --- a/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk0p2' ];then selection="-e stable,copy2" diff --git a/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args b/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args index bca35f938541..71e708301345 100644 --- a/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk0p2' ];then selection="-e stable,copy2" diff --git a/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args b/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args index 0855d23696ff..4e9fecdf7222 100644 --- a/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args +++ b/recipes-support/swupdate/swupdate/wandboard/09-swupdate-args @@ -1,4 +1,4 @@ -rootfs=`mount | grep "on / type" | cut -d':' -f 2 | cut -d' ' -f 1` +rootfs=`swupdate -g` if [ $rootfs == '/dev/mmcblk2p1' ];then selection="-e stable,copy2"
Use 'swupdate -g' to retrieve the rootfs as it is a simpler method. Signed-off-by: Fabio Estevam <festevam@gmail.com> --- .../swupdate/swupdate/beaglebone-yocto/09-swupdate-args | 2 +- recipes-support/swupdate/swupdate/raspberrypi3/09-swupdate-args | 2 +- .../swupdate/swupdate/sama5d27-som1-ek-sd/09-swupdate-args | 2 +- recipes-support/swupdate/swupdate/wandboard/09-swupdate-args | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)