mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
16 lines
503 B
Python
16 lines
503 B
Python
from bootstrapvz.base import Task
|
|
from bootstrapvz.common import phases
|
|
from bootstrapvz.common.tasks import initd
|
|
import os.path
|
|
|
|
|
|
class AdjustExpandRootDev(Task):
|
|
description = 'Adjusting the expand-root device'
|
|
phase = phases.system_modification
|
|
predecessors = [initd.AddExpandRoot, initd.AdjustExpandRootScript]
|
|
|
|
@classmethod
|
|
def run(cls, info):
|
|
from bootstrapvz.common.tools import sed_i
|
|
script = os.path.join(info.root, 'etc/init.d/expand-root')
|
|
sed_i(script, '/dev/loop0', '/dev/sda')
|