add install rootfs expand
This commit is contained in:
parent
9d6c3336d6
commit
c6860c03e8
@ -69,14 +69,14 @@ function printSubInfo() {
|
|||||||
# install rootfs-expand
|
# install rootfs-expand
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
printInfo "Install rootfs-expand package"
|
printInfo "Install rootfs-expand package"
|
||||||
dnf -q install rocky-release-rpi-9.0-5.el9.noarch -y
|
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
|
if [ "$?" -ne "0" ]; then printError "Problem to install rootfs-extand package";exit; fi
|
||||||
printSuccess "rootfs-expand package installed successfully"
|
printSuccess "rootfs-expand package installed successfully"
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# extend root part
|
# extend root part
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
#printInfo "Extend root partition"
|
printInfo "Extend root partition"
|
||||||
#partSize=`df --output=size -B 1 "$PWD" |tail -n 1`
|
#partSize=`df --output=size -B 1 "$PWD" |tail -n 1`
|
||||||
#if [ $partSize -gt 61780000000 ]; then
|
#if [ $partSize -gt 61780000000 ]; then
|
||||||
# printSuccess "Root partion already extended"
|
# printSuccess "Root partion already extended"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user