Skip to content

Commit

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

. /lib/lsb/init-functions
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 a5c4cc8

Please sign in to comment.