Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Librem5
librem5-devkit-tools
Commits
b39f8ecb
Commit
b39f8ecb
authored
Aug 12, 2021
by
Guido Gunther
💤
Browse files
resize_rootfs: Resize underlying luks device as well if possible
parent
0dbd1b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
usr/bin/resize_rootfs
View file @
b39f8ecb
...
...
@@ -26,6 +26,13 @@ read rootdev _rootmnt _rootfs _opts unused <<EOF
${
out
}
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
}
"
fi
fi
set
+e
out
=
$(
resize2fs
"
${
rootdev
}
"
2>&1
)
set
-e
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment