Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add volume icon #69

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion create-image.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

if [ "$1" == "clean" ]; then
find data -not -path data -not -path data/BOOTX64.efi -not path data/.gitignore -delete
find data -not -path data -not -path data/BOOTX64.efi -not -path data/TAILS.icns -not -path data/.gitignore -delete
echo "Cleaned up the data/ directory!"
echo "You can now re-run the script with:"
echo "$0"
Expand Down Expand Up @@ -133,6 +133,10 @@ create_image () {
mount_disk DISK_PATH

mkdir -p $DISK_PATH/efi/boot/

echo "[+] Setting Volume Icon"
cp data/TAILS.icns $DISK_PATH/.VolumeIcon.icns
SetFile -a C $DISK_PATH

echo "[+] Copying BOOTX64.efi"
cp data/BOOTX64.efi $DISK_PATH/efi/boot/
Expand Down
3 changes: 2 additions & 1 deletion data/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Ignore everything in this directory
*
# Except this file
# Except these files
!.gitignore
!BOOTX64.efi
!TAILS.icns
Binary file added data/TAILS.icns
Binary file not shown.