Skip to content

Commit

Permalink
fix: vmlinuz not exists in root but exists in /boot on Ubuntu Server …
Browse files Browse the repository at this point in the history
…logical volume installations
  • Loading branch information
markoceri committed Dec 21, 2023
1 parent 0f4e46b commit 0e295bd
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 0e295bd

Please sign in to comment.