Python-style: actually add the new copyright headers
This commit is contained in:
commit
231a83cf6b
@ -5,6 +5,7 @@
|
|||||||
#
|
#
|
||||||
# Copyright 2014, Aurélien Gâteau <agateau@kde.org>
|
# Copyright 2014, Aurélien Gâteau <agateau@kde.org>
|
||||||
# Copyright 2016, Teo Mrnjavac <teo@kde.org>
|
# Copyright 2016, Teo Mrnjavac <teo@kde.org>
|
||||||
|
# Copyright 2017, Alf Gaida <agaida@siduction.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -181,8 +182,10 @@ class FstabGenerator(object):
|
|||||||
print(FSTAB_HEADER, file=fstab_file)
|
print(FSTAB_HEADER, file=fstab_file)
|
||||||
|
|
||||||
for partition in self.partitions:
|
for partition in self.partitions:
|
||||||
# Special treatment for a btrfs root with @ and @home subvolumes
|
# Special treatment for a btrfs root with @ and @home
|
||||||
if partition["fs"] == "btrfs" and partition["mountPoint"] == "/":
|
# subvolumes
|
||||||
|
if (partition["fs"] == "btrfs"
|
||||||
|
and partition["mountPoint"] == "/"):
|
||||||
output = subprocess.check_output(['btrfs',
|
output = subprocess.check_output(['btrfs',
|
||||||
'subvolume',
|
'subvolume',
|
||||||
'list',
|
'list',
|
||||||
@ -249,11 +252,13 @@ class FstabGenerator(object):
|
|||||||
self.root_is_ssd = is_ssd
|
self.root_is_ssd = is_ssd
|
||||||
|
|
||||||
if filesystem == "btrfs" and "subvol" in partition:
|
if filesystem == "btrfs" and "subvol" in partition:
|
||||||
return dict(device="UUID=" + partition["uuid"],
|
return dict(
|
||||||
|
device="UUID=" + partition["uuid"],
|
||||||
mount_point=mount_point,
|
mount_point=mount_point,
|
||||||
fs=filesystem,
|
fs=filesystem,
|
||||||
options=",".join(["subvol={}".format(partition["subvol"]),
|
options=",".join(
|
||||||
options]),
|
["subvol={}".format(partition["subvol"]), options]
|
||||||
|
),
|
||||||
check=check,
|
check=check,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# === This file is part of Calamares - <http://github.com/calamares> ===
|
# === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
#
|
#
|
||||||
# Copyright 2014, Philip Müller <philm@manjaro.org>
|
# Copyright 2014, Philip Müller <philm@manjaro.org>
|
||||||
|
# Copyright 2017, Alf Gaida <agaida@siduction.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -29,4 +30,7 @@ def run():
|
|||||||
return_code = target_env_call(["update-initramfs", "-k", "all", "-u"])
|
return_code = target_env_call(["update-initramfs", "-k", "all", "-u"])
|
||||||
|
|
||||||
if return_code != 0:
|
if return_code != 0:
|
||||||
return "Failed to run update-initramfs on the target", "The exit code was {}".format(return_code)
|
return (
|
||||||
|
"Failed to run update-initramfs on the target",
|
||||||
|
"The exit code was {}".format(return_code)
|
||||||
|
)
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
# === This file is part of Calamares - <http://github.com/calamares> ===
|
# === This file is part of Calamares - <http://github.com/calamares> ===
|
||||||
#
|
#
|
||||||
# Copyright 2016, Teo Mrnjavac <teo@kde.org>
|
# Copyright 2016, Teo Mrnjavac <teo@kde.org>
|
||||||
|
# Copyright 2017, Alf Gaida <agaida@siduction.org>
|
||||||
|
# Copyright 2017, Adriaan de Groot <groot@kde.org>
|
||||||
#
|
#
|
||||||
# Calamares is free software: you can redistribute it and/or modify
|
# Calamares is free software: you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
Loading…
Reference in New Issue
Block a user