mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Merge pull request #467 from vitaminmoo/create-disk-dev-dir
Create device dirs if they do not exist
This commit is contained in:
commit
161c787906
1 changed files with 1 additions and 0 deletions
|
@ -86,6 +86,7 @@ class BasePartition(AbstractPartition):
|
|||
# $GRUB_DEVICE_UUID when creating /boot/grub/grub.cfg
|
||||
self.disk_by_uuid_path = os.path.join('/dev/disk/by-uuid', self.get_uuid())
|
||||
if not os.path.exists(self.disk_by_uuid_path):
|
||||
os.makedirs(os.path.dirname(self.disk_by_uuid_path))
|
||||
os.symlink(self.device_path, self.disk_by_uuid_path)
|
||||
|
||||
def unlink_uuid(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue