summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-08-25 15:10:08 +0100
committerGitHub <noreply@github.com>2022-08-25 15:10:08 +0100
commit09688708cc68272d6d18923d9662233fea3a5de5 (patch)
treeefb7b490476c5863e1bf37a018d1305cfbaf8c0e
parentdfbfeafb1362a2c6934575a984a78fd2524d5720 (diff)
parent4e83c988e223a64ab403f2533477f631758ccb7c (diff)
downloadvyatta-op-equuleus.tar.gz
vyatta-op-equuleus.zip
Merge pull request #56 from zdc/T4113-equuleus1.3.81.3.71.3.61.3.51.3.41.3.3-epa11.3.31.3.2equuleus
images management: T4113: Improved GRUB config parsing
-rwxr-xr-xscripts/vyatta-boot-image.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-boot-image.pl b/scripts/vyatta-boot-image.pl
index 0ecb442..140b8e9 100755
--- a/scripts/vyatta-boot-image.pl
+++ b/scripts/vyatta-boot-image.pl
@@ -102,7 +102,7 @@ sub parseGrubCfg {
# old install
$ehash{'ver'} = $OLD_IMG_VER_STR;
}
- if (/console=tty0.*console=ttyS[0-9]/) {
+ if (/console=ttyS\d(?!.*console)/) {
$ehash{'term'} = 'serial';
} else {
$ehash{'term'} = 'kvm';
@@ -170,7 +170,7 @@ sub deleteGrubEntries {
@entry = ();
} else {
if (/^\s+linux/) {
- if (/^\s+linux \/boot\/([^\/ ]+)\/.* boot=live /) {
+ if (/^\s+linux \/boot\/([^\/ ]+)\/.* boot=live/) {
# kernel line
$ver = $1;
} else {