add install rootfs expand

This commit is contained in:
Gilles Mouchet 2024-05-21 23:21:53 +02:00
parent 9d6c3336d6
commit c6860c03e8

View File

@ -69,14 +69,14 @@ function printSubInfo() {
# install rootfs-expand
#-----------------------------------------------------------------------------
printInfo "Install rootfs-expand package"
dnf -q install rocky-release-rpi-9.0-5.el9.noarch -y
if [ "$?" -ne "0"]; then printError "Problem to install rootfs-extand package";exit; fi
dnf -q install rocky-release-rpi-9.0-5.el9.noarch -y > /dev/null
if [ "$?" -ne "0" ]; then printError "Problem to install rootfs-extand package";exit; fi
printSuccess "rootfs-expand package installed successfully"
#-----------------------------------------------------------------------------
# extend root part
#-----------------------------------------------------------------------------
#printInfo "Extend root partition"
printInfo "Extend root partition"
#partSize=`df --output=size -B 1 "$PWD" |tail -n 1`
#if [ $partSize -gt 61780000000 ]; then
# printSuccess "Root partion already extended"