init: run resize2fs on /rw before mounting
In case of private.img was resized while the VM was powered off.
This commit is contained in:
parent
2d760a3930
commit
fabc72701c
@ -55,6 +55,7 @@ start()
|
||||
mkdir -p /var/run/qubes
|
||||
|
||||
if [ -e /dev/xvdb ] ; then
|
||||
resize2fs /dev/xvdb 2> /dev/null || echo "'resize2fs /dev/xvdb' failed"
|
||||
mount /rw
|
||||
|
||||
if ! [ -d /rw/home ] ; then
|
||||
|
@ -13,6 +13,7 @@ fi
|
||||
INTERFACE=eth0 /usr/lib/qubes/setup-ip
|
||||
|
||||
if [ -e /dev/xvdb -a ! -e /etc/this-is-dvm ] ; then
|
||||
resize2fs /dev/xvdb 2> /dev/null || echo "'resize2fs /dev/xvdb' failed"
|
||||
mount /rw
|
||||
|
||||
if ! [ -d /rw/home ] ; then
|
||||
|
Loading…
Reference in New Issue
Block a user