Created
June 22, 2019 14:18
-
-
Save andrzejressel/fec452a9481356225617cefff2b3439f to your computer and use it in GitHub Desktop.
Deterministic cloud-init iso creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# Requirements: | |
# xorriso installed | |
# user-data and meta-data files in directory | |
# https://lists.gnu.org/archive/html/bug-xorriso/2015-06/msg00007.html | |
timestamp="2015060415363300" | |
xorriso -as mkisofs -o cloud-init.iso -volid cidata -joliet -rock user-data meta-data -- \ | |
-volume_date c $timestamp \ | |
-volume_date m $timestamp \ | |
-volume_date x $timestamp \ | |
-volume_date f $timestamp \ | |
-alter_date b-c $timestamp / -- \ | |
-alter_date_r c $timestamp / -- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment