forked from pool/grub2
Accepting request 928444 from home:michael-chang:branches:Base:System
- Remove openSUSE Tumbleweed specific handling for default grub distributor (bsc#1191198) - Use /usr/lib/os-release as fallback (bsc#1191196) * grub2-default-distributor.patch * grub2-check-default.sh - VUL-0: grub2: grub2-once uses fixed file name in /var/tmp (bsc#1190474) * grub2-once * grub2-once.service - Fix unknown TPM error on buggy uefi firmware (bsc#1191504) * 0001-tpm-Pass-unknown-error-as-non-fatal-but-debug-print-.patch - Fix error /boot/grub2/locale/POSIX.gmo not found (bsc#1189769) * 0001-Filter-out-POSIX-locale-for-translation.patch - Fix error lvmid disk cannot be found after second disk added to the root volume group (bsc#1189874) (bsc#1071559) * 0001-ieee1275-implement-FCP-methods-for-WWPN-and-LUNs.patch - Fix error in grub installation due to unnecessary requirement to support excessive device for the root logical volume (bsc#1184135) * 0001-disk-diskfilter-Use-nodes-in-logical-volume-s-segmen.patch - Fix regression in reading xfs v4 *0001-fs-xfs-Fix-unreadable-filesystem-with-v4-superblock.patch OBS-URL: https://build.opensuse.org/request/show/928444 OBS-URL: https://build.opensuse.org/package/show/Base:System/grub2?expand=0&rev=396
This commit is contained in:
@@ -178,10 +178,12 @@ sub parse_menuentry($$$) {
|
||||
sub enable_restore_grubenv_service {
|
||||
|
||||
my $systemctl = "/usr/bin/systemctl";
|
||||
my $cleanup = "/var/tmp/grub2-cleanup-once";
|
||||
my $cleanup = "/var/lib/misc/grub2-cleanup-once";
|
||||
|
||||
open(my $fh, ">", $cleanup) or die "open: $cleanup $!\n";
|
||||
close($fh);
|
||||
unless (-e $cleanup) {
|
||||
open(my $fh, ">", $cleanup) or die "open: $cleanup $!\n";
|
||||
close($fh);
|
||||
}
|
||||
|
||||
return 0 if (system("$systemctl --quiet is-enabled grub2-once") == 0);
|
||||
system "$systemctl --no-reload enable grub2-once >/dev/null 2>&1";
|
||||
|
Reference in New Issue
Block a user