blob: c0c55826d7fd8dc494fe4d106fc7e53d2fb15d54 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
set -e
# Check for cryptdevice variable
if [ -z "$cryptdevice" ] ; then
echo "unable to get cryptdevice variable (local-premount)"
exit 1
fi
if [ -n "$ROOT" ] ; then
# Resize encrypted root partition
cryptsetup resize "${ROOT}"
e2fsck -fp "${ROOT}"
resize2fs -f "${ROOT}"
e2fsck -fp "${ROOT}"
fi
exit 0
|