boot/init: auto-resize task shows a message
@@ -11,6 +11,7 @@ class Tasks::AutoResize < Task
def run()
log("Resizing #{@device}...")
if @type.match(/^ext[234]$/)
+ Progress.with_message("Verifying #{@device}...") do
# TODO: Understand the actual underlying issue with e2fsck.
# It seems `e2fsck` succeeds, according to the output, but has a >0 exit
# status. Running it again in those situations is a no-op, which is weird
@@ -23,7 +24,10 @@ class Tasks::AutoResize < Task
$logger.info("Re-running e2fsc...")
System.run("e2fsck", "-fp", @device)
end
+ end
+ Progress.with_message("Resizing #{@device}...") do
System.run("resize2fs", "-f", @device)
+ end
else
$logger.warn("Cannot resize #{@type}... filesystem left untouched.")
end
