mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Use absolute paths everywhere
This commit is contained in:
parent
8fe457b2dc
commit
3630d72f0a
5 changed files with 5 additions and 5 deletions
|
@ -23,7 +23,7 @@ class OpenNebulaContext(Task):
|
|||
os.chmod(script_dst, rwxr_xr_x)
|
||||
|
||||
from common.tools import log_check_call
|
||||
log_check_call(['/usr/sbin/chroot', info.root, 'dpkg', '-i', '/tmp/one-context_3.8.1.deb'])
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/usr/bin/dpkg', '-i', '/tmp/one-context_3.8.1.deb'])
|
||||
# Fix start
|
||||
from common.tools import sed_i
|
||||
vmcontext_def = os.path.join(info.root, 'etc/init.d/vmcontext')
|
||||
|
|
|
@ -42,4 +42,4 @@ class AddLocalUserPackages(Task):
|
|||
copy(script_src, script_dst)
|
||||
os.chmod(script_dst, rwxr_xr_x)
|
||||
|
||||
log_check_call(['/usr/sbin/chroot', info.root, 'dpkg', '-i', '/tmp/'+os.path.basename(script_src)])
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/usr/bin/dpkg', '-i', '/tmp/'+os.path.basename(script_src)])
|
||||
|
|
|
@ -31,4 +31,4 @@ class ConfigureGrub(Task):
|
|||
|
||||
from common.tools import log_check_call
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-grub'])
|
||||
log_check_call(['/usr/sbin/chroot', info.root, 'ln', '-s', '/boot/grub/grub.cfg', '/boot/grub/menu.lst'])
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/bin/ln', '-s', '/boot/grub/grub.cfg', '/boot/grub/menu.lst'])
|
||||
|
|
|
@ -36,7 +36,7 @@ class ConfigureGrub(Task):
|
|||
with open(modules_path, 'a') as modules:
|
||||
modules.write("\nvirtio_pci\nvirtio_blk\n")
|
||||
|
||||
log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u'])
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-initramfs', '-u'])
|
||||
# Install grub in mbr
|
||||
log_check_call(['/usr/sbin/grub-install', '--boot-directory='+info.root+"/boot/", info.bootstrap_device['path']])
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ class ConfigureGrub(Task):
|
|||
script_dst = os.path.join(info.root, 'etc/grub.d/00_header')
|
||||
copy(script_src, script_dst)
|
||||
os.chmod(script_dst, rwxr_xr_x)
|
||||
log_check_call(['/usr/sbin/chroot', info.root, 'update-initramfs', '-u'])
|
||||
log_check_call(['/usr/sbin/chroot', info.root, '/usr/sbin/update-initramfs', '-u'])
|
||||
# Install grub in mbr
|
||||
log_check_call(['/usr/sbin/grub-install', '--boot-directory='+info.root+"/boot/", info.bootstrap_device['path']])
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue