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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
0e5e1215
You need to sign in or sign up before continuing.
Commit
0e5e1215
authored
May 30, 2019
by
Anton Midyukov
Committed by
Michael Shigorin
Aug 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tar2fs: switch case for $BOOTLOADER
This allows one not to hope that only the packages of the desired loader will be installed.
parent
07559bc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
tar2fs
bin/tar2fs
+11
-8
No files found.
bin/tar2fs
View file @
0e5e1215
...
...
@@ -255,13 +255,13 @@ echo "** end of boot.conf"
popd
# for u-boot
if
[
"
$BOOTLOADER
"
=
"uboot"
]
;
then
# Setup bootloader
case
"
$BOOTLOADER
"
in
uboot
)
EXTLINUX_CONF
=
"
$ROOTFS
/boot/extlinux/extlinux.conf"
sed
-i
"s/LABEL=ROOT/
$ROOTDEV
/g"
"
$EXTLINUX_CONF
"
fi
if
[
-x
"
$ROOTFS
"
/sbin/lilo
]
;
then
;;
lilo
)
# configure and install bootloader
REGEXP
=
'^.*: ([0-9]+) cylinders, ([0-9]+) heads, ([0-9]+) sectors/track*$'
set
--
$(
sfdisk
-g
"
$LOOPDEV
"
|
grep
-E
"
$REGEXP
"
|
sed
-r
"s@
$REGEXP
@
\1
\2
\3
@"
)
...
...
@@ -292,13 +292,16 @@ image=/boot/vmlinuz
boot=
$BLOCKDEV
$LILO_COMMON
EOF
elif
[
-x
"
$ROOTFS
"
/usr/sbin/grub-efi-autoupdate
]
;
then
;;
grub-efi
)
chroot
"
$ROOTFS
"
grub-mkconfig
-o
/boot/grub/grub.cfg
chroot
"
$ROOTFS
"
grub-install
elif
[
-x
"
$ROOTFS
"
/usr/sbin/grub-autoupdate
]
;
then
;;
grub
)
chroot
"
$ROOTFS
"
grub-mkconfig
-o
/boot/grub/grub.cfg
chroot
"
$ROOTFS
"
grub-install
--target
=
i386-pc
"
$LOOPDEV
"
fi
;;
esac
if
[
-n
"
$SUDO_USER
"
]
;
then
chown
"
$SUDO_USER
:
$(
id
-g
"
$SUDO_USER
"
)
"
"
$IMG
"
||
:
...
...
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