mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-10-07 17:40:30 +00:00
Don't resolve device_path
grub does that automatically
This commit is contained in:
parent
a7bc4446c2
commit
b03fbb6dad
1 changed files with 3 additions and 2 deletions
|
@ -72,9 +72,10 @@ class InstallGrub(Task):
|
|||
device_map.write('(hd0) {device_path}\n'.format(device_path=device_path))
|
||||
if not isinstance(p_map, NoPartitions):
|
||||
for idx, partition in enumerate(info.volume.partition_map.partitions):
|
||||
[partition_path] = log_check_call(['readlink', '-f', partition.device_path])
|
||||
device_map.write('(hd0,{prefix}{idx}) {device_path}\n'
|
||||
.format(device_path=partition_path, prefix=partition_prefix, idx=idx+1))
|
||||
.format(device_path=partition.device_path,
|
||||
prefix=partition_prefix,
|
||||
idx=idx+1))
|
||||
|
||||
# Install grub
|
||||
log_check_call(['/usr/sbin/chroot', info.root,
|
||||
|
|
Loading…
Add table
Reference in a new issue