Commit b39f8ecb authored by Guido Gunther's avatar Guido Gunther 💤
Browse files

resize_rootfs: Resize underlying luks device as well if possible

parent 0dbd1b1b
......@@ -26,6 +26,13 @@ read rootdev _rootmnt _rootfs _opts unused <<EOF
# Check if rootfs is on a luks device and resize that if possible
if [ -x /sbin/dmsetup ] && [ -x /sbin/cryptsetup ]; then
if [ -n "$(dmsetup status --target crypt ${rootdev})" ]; then
cryptsetup resize "${rootdev}"
set +e
out=$(resize2fs "${rootdev}" 2>&1)
set -e
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment