mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
zfsbootmenu: fix date invocation
This commit is contained in:
parent
e2019addfa
commit
e0f5570b0f
2 changed files with 23 additions and 1 deletions
22
srcpkgs/zfsbootmenu/patches/date.patch
Normal file
22
srcpkgs/zfsbootmenu/patches/date.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
From 4868300e3295dce16f3672176caf4dad413d1d6d Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?Ferm=C3=ADn=20Olaiz?= <fermino@users.noreply.github.com>
|
||||||
|
Date: Tue, 9 Jan 2024 17:59:28 -0300
|
||||||
|
Subject: [PATCH] install-helpers.sh: fix date template syntax
|
||||||
|
|
||||||
|
---
|
||||||
|
zfsbootmenu/install-helpers.sh | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/zfsbootmenu/install-helpers.sh b/zfsbootmenu/install-helpers.sh
|
||||||
|
index 5af273e7d..8eb1ef41c 100644
|
||||||
|
--- a/zfsbootmenu/install-helpers.sh
|
||||||
|
+++ b/zfsbootmenu/install-helpers.sh
|
||||||
|
@@ -262,7 +262,7 @@ install_zbm_osver() {
|
||||||
|
local build_date
|
||||||
|
[ -r "${zfsbootmenu_module_root}/zbm-release" ] || return 0
|
||||||
|
zbm_install_file "${zfsbootmenu_module_root}/zbm-release" "/etc/zbm-release"
|
||||||
|
- if build_date="$(date %Y-%m-%d)"; then
|
||||||
|
+ if build_date="$(date '+%Y-%m-%d')"; then
|
||||||
|
cat >> "${BUILDROOT}/etc/zbm-release" <<-EOF
|
||||||
|
BUILD_ID="${build_date}"
|
||||||
|
EOF
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'zfsbootmenu'
|
# Template file for 'zfsbootmenu'
|
||||||
pkgname=zfsbootmenu
|
pkgname=zfsbootmenu
|
||||||
version=2.3.0
|
version=2.3.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_build_target="zbm-release"
|
make_build_target="zbm-release"
|
||||||
depends="dracut zfs kexec-tools fzf bash pigz mbuffer ncurses
|
depends="dracut zfs kexec-tools fzf bash pigz mbuffer ncurses
|
||||||
|
|
Loading…
Add table
Reference in a new issue