Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
manjaro-architect
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
manjaro-architect
Commits
fd0c4321
Commit
fd0c4321
authored
Feb 09, 2019
by
Matti Hyttinen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use literal newlines in the grub installation script for legability
parent
7ed6e643
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
lib/util-base.sh
lib/util-base.sh
+13
-6
No files found.
lib/util-base.sh
View file @
fd0c4321
...
...
@@ -408,9 +408,19 @@ install_grub_uefi() {
echo
ZPOOL_VDEV_NAME_PATH
=
YES
>>
${
MOUNTPOINT
}
/etc/environment
export
ZPOOL_VDEV_NAME_PATH
=
YES
# there has to be a better way to do this
echo
-e
"# "
'!'
"/bin/bash
\n
ln -s /hostlvm /run/lvm
\n
pacman -S --noconfirm --needed grub efibootmgr dosfstools grub-btrfs
\n
export ZPOOL_VDEV_NAME_PATH=YES
\n
grub-install --target=x86_64-efi --efi-directory=
${
UEFI_MOUNT
}
--bootloader-id=
${
bootid
}
--recheck
\n
pacman -S --noconfirm grub-theme-manjaro"
>
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
echo
-e
"# "
'!'
"/bin/bash
ln -s /hostlvm /run/lvm
pacman -S --noconfirm --needed grub efibootmgr dosfstools grub-btrfs
export ZPOOL_VDEV_NAME_PATH=YES
grub-install --target=x86_64-efi --efi-directory=
${
UEFI_MOUNT
}
--bootloader-id=
${
bootid
}
--recheck
pacman -S --noconfirm grub-theme-manjaro"
>
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
else
echo
-e
"# "
'!'
"/bin/bash
\n
ln -s /hostlvm /run/lvm
\n
pacman -S --noconfirm --needed grub efibootmgr dosfstools grub-btrfs
\n
grub-install --target=x86_64-efi --efi-directory=
${
UEFI_MOUNT
}
--bootloader-id=
${
bootid
}
--recheck
\n
pacman -S --noconfirm grub-theme-manjaro"
>
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
echo
-e
"# "
'!'
"/bin/bash
ln -s /hostlvm /run/lvm
pacman -S --noconfirm --needed grub efibootmgr dosfstools grub-btrfs
findmnt | awk '/^
\/
/ {print
$3
}' | grep -q btrfs && sed -e '/GRUB_SAVEDEFAULT/ s/^#*/#/' -i /etc/default/grub
grub-install --target=x86_64-efi --efi-directory=
${
UEFI_MOUNT
}
--bootloader-id=
${
bootid
}
--recheck
pacman -S --noconfirm grub-theme-manjaro"
>
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
fi
[[
-f
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
]]
&&
chmod
a+x
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
...
...
@@ -430,10 +440,7 @@ install_grub_uefi() {
umount /mnt/hostlvm
# the grub_installer is no longer needed - there still needs to be a better way to do this
[[
-f
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
]]
&&
rm
${
MOUNTPOINT
}
/usr/bin/grub_installer.sh
# If root is on btrfs volume, amend grub
[[
$(
findmnt
-no
FSTYPE
${
MOUNTPOINT
}
)
==
"btrfs"
]]
&&
sed
-e
'/GRUB_SAVEDEFAULT/ s/^#*/#/'
-i
${
MOUNTPOINT
}
/etc/default/grub
# Ask if user wishes to set Grub as the default bootloader and act accordingly
DIALOG
"
$_InstUefiBtTitle
"
--yesno
"
\n
$_SetBootDefBody
${
UEFI_MOUNT
}
/EFI/boot
$_SetBootDefBody2
\n
"
0 0
if
[[
$?
-eq
0
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment