Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
a2c43788
Commit
a2c43788
authored
Jan 18, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: Disable os-probe at the time of grub installation
os-probe finds loopback devices.
parent
d568b114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
tar2fs
bin/tar2fs
+6
-2
No files found.
bin/tar2fs
View file @
a2c43788
...
...
@@ -397,6 +397,7 @@ image=/boot/vmlinuz
EOF
;;
grub-efi
)
echo
'GRUB_DISABLE_OS_PROBER=true'
>>
"
$ROOTFS
"
/etc/sysconfig/grub2
chroot
"
$ROOTFS
"
grub-mkconfig
-o
/boot/grub/grub.cfg
case
"
$ARCH
"
in
*
86
)
...
...
@@ -422,21 +423,24 @@ grub-efi)
--removable
--no-uefi-secure-boot
;;
esac
sed
-i
'/GRUB_DISABLE_OS_PROBER=true/d'
"
$ROOTFS
/etc/sysconfig/grub2"
;;
grub
)
echo
'GRUB_DISABLE_OS_PROBER=true'
>>
"
$ROOTFS
"
/etc/sysconfig/grub2
chroot
"
$ROOTFS
"
grub-mkconfig
-o
/boot/grub/grub.cfg
case
"
$ARCH
"
in
*
86
*
)
chroot
"
$ROOTFS
"
grub-install
--target
=
i386-pc
"
$LOOPDEV
"
sed
-i
's/initrdefi/initrd16/g'
"
$ROOTFS
/boot/grub/grub.cfg"
sed
-i
's/linuxefi/linux16/g'
"
$ROOTFS
/boot/grub/grub.cfg"
;;
;;
ppc
*
)
[
-z
"
$LOOPBOOTLOADER
"
]
||
chroot
"
$ROOTFS
"
grub-install
--target
=
powerpc-ieee1275
\
--no-nvram
"
$LOOPBOOTLOADER
"
;;
;;
esac
sed
-i
'/GRUB_DISABLE_OS_PROBER=true/d'
"
$ROOTFS
/etc/sysconfig/grub2"
;;
esac
...
...
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