Skip to content
Snippets Groups Projects
Commit ed45b9ff authored by Luis Guzmán's avatar Luis Guzmán
Browse files

grub2-unsigned: fix patch changes on update.

parent 306d4729
No related branches found
No related tags found
No related merge requests found
...@@ -269,4 +269,7 @@ else ...@@ -269,4 +269,7 @@ else
fi fi
} }
remove_patch(){
rm "$(find debian/patches -name "$1")"
sed -i "/$1/d" debian/patches/series
}
...@@ -35,10 +35,7 @@ done ...@@ -35,10 +35,7 @@ done
#sed '/dosfstools/d' -i debian/control #sed '/dosfstools/d' -i debian/control
sed '/mkfs.minix/s/-B $BLKSIZE//g' -i tests/util/grub-fs-tester.in sed '/mkfs.minix/s/-B $BLKSIZE//g' -i tests/util/grub-fs-tester.in
for i in install-efi-ubuntu-flavours.patch mkconfig-ubuntu-distributor.patch; do remove_patch mkconfig-ubuntu-distributor.patch
rm debian/patches/$i
sed /$i/d debian/patches/series -i
done
#Prevent to built grub2-unsigned on armhf and ppc64el arch #Prevent to built grub2-unsigned on armhf and ppc64el arch
sed -i "/Architecture:/s|any-arm$|armel|g;s|any-arm |armel|g" debian/control sed -i "/Architecture:/s|any-arm$|armel|g;s|any-arm |armel|g" debian/control
...@@ -51,9 +48,11 @@ sed -i '/Package: grub-common/,/Built-Using:/s|Architecture: any|Architecture: a ...@@ -51,9 +48,11 @@ sed -i '/Package: grub-common/,/Built-Using:/s|Architecture: any|Architecture: a
replace "with Linux" "with Linux-Libre" util replace "with Linux" "with Linux-Libre" util
replace "with Linux" "with Linux-Libre" debian replace "with Linux" "with Linux-Libre" debian
replace "Linux" "Linux-Libre" po replace "Linux" "Linux-Libre" po
replace Kubuntu Triskel .
replace Ubuntu Trisquel . replace Ubuntu Trisquel .
replace kubuntu triskel .
replace ubuntu trisquel . replace ubuntu trisquel .
find |grep ubuntu|xargs rename s/ubuntu/trisquel/ find |grep ubuntu|xargs rename s/ubuntu/trisquel/g
#Avoid the use of signed grub efi package #Avoid the use of signed grub efi package
sed -i '/Recommends:/s|grub-efi-amd64-signed|grub-efi-amd64|' debian/control sed -i '/Recommends:/s|grub-efi-amd64-signed|grub-efi-amd64|' debian/control
...@@ -66,3 +65,4 @@ sed -i '/set -e/aexit 77' tests/grub_cmd_set_date.in ...@@ -66,3 +65,4 @@ sed -i '/set -e/aexit 77' tests/grub_cmd_set_date.in
changelog "skip test grub_cmd_set_date.in" changelog "skip test grub_cmd_set_date.in"
compile compile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment