2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #6927 from gurevichmark/getinst_partition

Use 'find' command to consistently locate vmlinu* file on the disk partition
This commit is contained in:
besawn 2021-03-24 14:04:48 -04:00 committed by GitHub
commit 814c39456c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,7 +109,7 @@ if [ -z "$install_disk" ]; then
# If there is kernel file, add partition's disk into disk_array
# It seems the kernel file in ubuntu and sles are named like vmlinux, but in RH it is called vmlinuz
# To check both vmlinux and vmlinuz, use regular expression "vmlinu*" to match them
for i in $ker_dir/vmlinu*; do
for i in $(find $ker_dir -maxdepth 1 -name "vmlinu*"); do
case $partition in
nvme*)
# Expected nvme partition format example: nvme0n1p1