OSDN Git Service
(root)
/
android-x86
/
bootable-newinstaller.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46058ab
)
rpm: detect a debian like distribution more effectively
author
Chih-Wei Huang
<cwhuang@linux.org.tw>
Fri, 22 Jun 2018 03:01:23 +0000
(11:01 +0800)
committer
Chih-Wei Huang
<cwhuang@linux.org.tw>
Fri, 22 Jun 2018 03:01:23 +0000
(11:01 +0800)
rpm/rpm.spec
patch
|
blob
|
history
diff --git
a/rpm/rpm.spec
b/rpm/rpm.spec
index
4909dc1
..
0025c01
100644
(file)
--- a/
rpm/rpm.spec
+++ b/
rpm/rpm.spec
@@
-32,7
+32,7
@@
sed -i "s|ANDROID_ROOT|/%{install_prefix}|; s|CMDLINE|%{cmdline}|" %{buildroot}%
%post
. /etc/os-release
mkdir -p /%{install_prefix}/data
-if
[ "$ID" = "debian" -o "$ID_LIKE" = "debian" ]
; then
+if
echo $ID $ID_LIKE | grep -q debian
; then
grubcfg=/boot/grub/custom.cfg
elif mountpoint -q /boot/efi; then
grubcfg=/boot/efi/EFI/$ID/custom.cfg && efi=efi