chiark / gitweb /
kernel-install: create the loader entries with absolute paths relative to /boot
authorHarald Hoyer <harald@redhat.com>
Tue, 26 Feb 2013 09:56:07 +0000 (10:56 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 26 Feb 2013 09:56:07 +0000 (10:56 +0100)
src/kernel-install/kernel-install

index 8dd7f6788b37d37854776fc510f10b7869b6d637..6378d8c315bde5149ffe0b23b5195baf0079c649 100644 (file)
@@ -67,8 +67,8 @@ if ! ( [[ $COMMAND ]] && [[ $KERNEL_VERSION ]] && [[ $KERNEL_IMAGE ]] ); then
     exit 1
 fi
 
-BOOT_DIR="$MACHINE_ID/$KERNEL_VERSION"
-BOOT_DIR_ABS="/boot/$BOOT_DIR"
+BOOT_DIR="/${MACHINE_ID}/${KERNEL_VERSION}"
+BOOT_DIR_ABS="/boot${BOOT_DIR}"
 LOADER_ENTRY="/boot/loader/entries/${ID}-${KERNEL_VERSION}-${MACHINE_ID}.conf"
 ret=0