mirror of
https://github.com/systemd/systemd.git
synced 2025-01-14 23:24:38 +03:00
kernel-install: drop redundant "/"
Follow-up for 1cdbff1c844ce46f1d84d8feeed426ebfd550988. After the commit 1cdbff1c844ce46f1d84d8feeed426ebfd550988, each entry .conf contains redundant slash like the following: ``` $ cat xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-5.9.8-200.fc33.x86_64.conf title Fedora 33 (Thirty Three) version 5.9.8-200.fc33.x86_64 machine-id xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx options root=/dev/nvme0n1p2 ro rootflags=subvol=system/fedora selinux=0 audit=0 linux //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/5.9.8-200.fc33.x86_64/linux initrd //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/5.9.8-200.fc33.x86_64/initrd ```
This commit is contained in:
parent
ca91ce3a33
commit
cd0d230e7b
@ -20,7 +20,7 @@ MACHINE_ID=$KERNEL_INSTALL_MACHINE_ID
|
||||
|
||||
BOOT_ROOT=${ENTRY_DIR_ABS%/$MACHINE_ID/$KERNEL_VERSION}
|
||||
BOOT_MNT=$(stat -c %m $BOOT_ROOT)
|
||||
ENTRY_DIR=/${ENTRY_DIR_ABS#$BOOT_MNT}
|
||||
ENTRY_DIR=${ENTRY_DIR_ABS#$BOOT_MNT}
|
||||
|
||||
if [[ $COMMAND == remove ]]; then
|
||||
rm -f "$BOOT_ROOT/loader/entries/$MACHINE_ID-$KERNEL_VERSION.conf"
|
||||
|
Loading…
x
Reference in New Issue
Block a user