Skip to content

Commit

Permalink
Merge pull request #323 from markoceri/master
Browse files Browse the repository at this point in the history
fix 322: vmlinuz not exists in root but exists in /boot on Ubuntu Server logical volume installations
  • Loading branch information
pieroproietti authored Dec 21, 2023
2 parents 0f4e46b + 0e295bd commit 953f2fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/classes/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ export default class Utils {
cmdline.forEach(cmd => {
if (cmd.includes('BOOT_IMAGE')) {
vmlinuz = cmd.substring(cmd.indexOf('=') + 1)

if (!fs.existsSync(vmlinuz) && fs.existsSync(`/boot${vmlinuz}`)) {
vmlinuz = `/boot${vmlinuz}`
}
}
})

Expand Down

0 comments on commit 953f2fc

Please sign in to comment.