Skip to content
Open
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
8 changes: 8 additions & 0 deletions scripts/BuildScripts/FilesystemScripts/buildFilesystem.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@ echo -n "127.0.0.1 PrawnOS" > $outmnt/etc/hosts
#Cleanup apt retry
chroot $outmnt rm -f /etc/apt/apt.conf.d/80-retries

# Add a file for release info to /etc/prawnos-release:
if ! git describe --tags 2>/dev/null; then
# FIXME: if we care about this case, we'd need to add a VERSION file or similar to the rootdir
echo "unknown" > "$outmnt/etc/prawnos-release"
else
printf "%s-%s\n" "$(git branch --show-current)" "$(git describe --tags)" > "$outmnt/etc/prawnos-release"
fi

# do a non-error cleanup
umount -l $outmnt > /dev/null 2>&1
rmdir $outmnt > /dev/null 2>&1
Expand Down