コード例 #1
0
ファイル: clonezilla.py プロジェクト: pombredanne/paella
def install_rootfs(remove=False):
    src = orig_rootdir()
    dest = usb_rootdir()
    if remove:
        rmdir(str(dest))
    if not dest.isdir():
        dest.makedirs()
    cmd = ['cp', '-al', str(src), str(dest.dirname())]
    subprocess.check_call(cmd)
コード例 #2
0
ファイル: clonezilla.py プロジェクト: joelsefus/paella
def install_rootfs(remove=False):
    src = orig_rootdir()
    dest = usb_rootdir()
    if remove:
        rmdir(str(dest))
    if not dest.isdir():
        dest.makedirs()
    cmd = ['cp', '-al', str(src), str(dest.dirname())]
    subprocess.check_call(cmd)
コード例 #3
0
ファイル: clonezilla.py プロジェクト: pombredanne/paella
def remove_bootdir():
    bootdir = '%s/' % usb_bootdir()
    rmdir(bootdir)
コード例 #4
0
ファイル: caine.py プロジェクト: joelsefus/paella
def remove_bootdir():
    bootdir = '%s/' % usb_bootdir()
    rmdir(bootdir)
コード例 #5
0
ファイル: paella.py プロジェクト: pombredanne/paella
def remove_bootdir(machine, arch):
    bootdir = '%s/' % usb_bootdir(machine, arch)
    rmdir(bootdir)