]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
mkosi: rename SHA256SUM → SHA256SUMS 54/head
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2016 09:50:37 +0000 (10:50 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 21 Dec 2016 09:50:37 +0000 (10:50 +0100)
This was an unfortunate typo I unfortunately didn't notice earlier. The
file was really supposed to be created as SHA256SUMS rather than
SHA256SUM, in order to follow Ubuntu's naming of the checksums of OS
images.  Moreover systemd's importd tool will actually look for
SHA256SUMS rather than SHA256SUM.

Hence, let's rename this now, even if this is to some level a compat
break. But as nobody noticed this earlier I figure people didn't care so
far.

.gitignore
README.md
mkosi

index 10f4e69ddf60372b43d8a300b40c9c5896538335..557152f638624fa582c24fe7de946a52e5fd9d76 100644 (file)
@@ -1,5 +1,5 @@
-/SHA256SUM
-/SHA256SUM.gpg
+/SHA256SUMS
+/SHA256SUMS.gpg
 /__pycache__
 /mkosi.egg-info
 /build
index c555f4c8893cb7d322e282faa35960c2b4b56b70..870dd81c43d90dd9e572f3c5cfa0451eb9739817 100644 (file)
--- a/README.md
+++ b/README.md
@@ -72,7 +72,7 @@ systemd-nspawn -bD image
 
 # Other features
 
-* Optionally, create an *SHA256SUM* checksum file for the result,
+* Optionally, create an *SHA256SUMS* checksum file for the result,
   possibly even signed via gpg.
 
 * Optionally, place a specific `.nspawn` settings file along
diff --git a/mkosi b/mkosi
index 18797c6ec363de2f1d3c7e8fb6e56a58b4862387..cef60ec75a454d35655ff2afbbd5508fa08d0923 100755 (executable)
--- a/mkosi
+++ b/mkosi
@@ -1381,7 +1381,7 @@ def calculate_sha256sum(args, raw, tar, root_hash_file, nspawn_settings):
     if not args.checksum:
         return None
 
-    with complete_step('Calculating SHA256SUM'):
+    with complete_step('Calculating SHA256SUMS'):
         f = tempfile.NamedTemporaryFile(mode="w+", prefix=".mkosi-", encoding="utf-8",
                                         dir=os.path.dirname(args.output_checksum))
 
@@ -1403,7 +1403,7 @@ def calculate_signature(args, checksum):
     if checksum is None:
         return None
 
-    with complete_step('Signing SHA256SUM'):
+    with complete_step('Signing SHA256SUMS'):
         f = tempfile.NamedTemporaryFile(mode="wb", prefix=".mkosi-",
                                         dir=os.path.dirname(args.output_signature))
 
@@ -1442,7 +1442,7 @@ def link_output_checksum(args, checksum):
     if checksum is None:
         return
 
-    with complete_step('Linking SHA256SUM file',
+    with complete_step('Linking SHA256SUMS file',
                        'Successfully linked ' + args.output_checksum):
         os.chmod(checksum, 0o666 & ~args.original_umask)
         os.link(checksum, args.output_checksum)
@@ -1460,7 +1460,7 @@ def link_output_signature(args, signature):
     if signature is None:
         return
 
-    with complete_step('Linking SHA256SUM.gpg file',
+    with complete_step('Linking SHA256SUMS.gpg file',
                        'Successfully linked ' + args.output_signature):
         os.chmod(signature, 0o666 & ~args.original_umask)
         os.link(signature, args.output_signature)
@@ -1560,8 +1560,8 @@ def parse_args():
     group.add_argument("--srv-size", help='Set size of /srv partition (only raw_gpt, raw_squashfs)', metavar='BYTES')
 
     group = parser.add_argument_group("Validation (only raw_gpt, raw_btrfs, raw_squashfs, tar)")
-    group.add_argument("--checksum", action='store_true', help='Write SHA256SUM file')
-    group.add_argument("--sign", action='store_true', help='Write and sign SHA256SUM file')
+    group.add_argument("--checksum", action='store_true', help='Write SHA256SUMS file')
+    group.add_argument("--sign", action='store_true', help='Write and sign SHA256SUMS file')
     group.add_argument("--key", help='GPG key to use for signing')
     group.add_argument("--password", help='Set the root password')
 
@@ -2062,10 +2062,10 @@ def load_args():
         args.output_root_hash_file = build_root_hash_file_path(args.output)
 
     if args.checksum:
-        args.output_checksum = os.path.join(os.path.dirname(args.output), "SHA256SUM")
+        args.output_checksum = os.path.join(os.path.dirname(args.output), "SHA256SUMS")
 
     if args.sign:
-        args.output_signature = os.path.join(os.path.dirname(args.output), "SHA256SUM.gpg")
+        args.output_signature = os.path.join(os.path.dirname(args.output), "SHA256SUMS.gpg")
 
     if args.nspawn_settings is not None:
         args.nspawn_settings = os.path.abspath(args.nspawn_settings)