Skip to content

Commit

Permalink
Update resize2fs_once script to last upstream version
Browse files Browse the repository at this point in the history
  • Loading branch information
martignoni committed Oct 17, 2022
1 parent db372d2 commit ab50f5f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions roles/partitionresize/files/etc/init.d/resize2fs_once
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
# Short-Description: Resize the root filesystem to fill partition
# Description:
### END INIT INFO

. /lib/lsb/init-functions

ROOT_PART="$(findmnt / -o source -n)"

case "$1" in
start)
log_daemon_msg "Starting resize2fs_once" &&
resize2fs "$ROOT_PART" &&
log_daemon_msg "Starting resize2fs_once"
ROOT_DEV=$(findmnt / -o source -n) &&
resize2fs $ROOT_DEV &&
update-rc.d resize2fs_once remove &&
rm /etc/init.d/resize2fs_once &&
log_end_msg $?
Expand Down

0 comments on commit ab50f5f

Please sign in to comment.