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
2
Issues
2
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
edd96014
Commit
edd96014
authored
Sep 17, 2021
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
syslinux: Generate isolinux.cfg for any BOOTLOADER
isolinux.cfg required for alterator-netinst.
parent
2e905549
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
21 deletions
+23
-21
01-syslinux
features.in/syslinux/stage1/scripts.d/01-syslinux
+23
-21
No files found.
features.in/syslinux/stage1/scripts.d/01-syslinux
View file @
edd96014
...
@@ -3,33 +3,14 @@
...
@@ -3,33 +3,14 @@
# copy modules; see also this feature's generate.mk
# copy modules; see also this feature's generate.mk
MODDIR
=
"/usr/lib/syslinux"
MODDIR
=
"/usr/lib/syslinux"
CFG
=
"
$GLOBAL_BOOTLOADER
.cfg"
# validate just in case (see also stage1 Makefile)
case
"
$GLOBAL_BOOTLOADER
"
in
case
"
$GLOBAL_BOOTLOADER
"
in
isolinux|syslinux
)
;;
isolinux|syslinux
)
CFG
=
"
$GLOBAL_BOOTLOADER
.cfg"
;;
*
)
echo
"Warning: GLOBAL_BOOTLOADER not supported:
\`
$GLOBAL_BOOTLOADER
'"
>
&2
;
*
)
CFG
=
"isolinux.cfg"
;;
rm
-fr
"
$WORKDIR
/syslinux"
exit
0
;;
esac
esac
cd
"
$WORKDIR
/syslinux"
cd
"
$WORKDIR
/syslinux"
# copy extra files, if any
SYSLINUX_FILES
=
"
$(
cat
.in/syslinux.list
)
"
if
[
-n
"
${
SYSLINUX_FILES
%
}
"
]
;
then
cp
-a
$SYSLINUX_FILES
.
fi
# prune module-specific config snippets; skip built-in one
SYSLINUX_MODULES
=
"
$(
cat
.in/modules.list
)
"
if
[
-n
"
$SYSLINUX_MODULES
"
]
;
then
for
module
in
$SYSLINUX_MODULES
;
do
if
[
"
$modules
"
==
"prompt"
]
;
then continue
;
fi
cp
-a
$MODDIR
/
$module
.c??
.
||
rm
.in/[0-9][0-9]
$module
.cfg
done
fi
# number ordering sponsored by shell's pathname expansion
# number ordering sponsored by shell's pathname expansion
grep
-hv
'^#'
.in/[0-9][0-9]
*
.cfg
>
"
$CFG
"
grep
-hv
'^#'
.in/[0-9][0-9]
*
.cfg
>
"
$CFG
"
...
@@ -57,5 +38,26 @@ fi
...
@@ -57,5 +38,26 @@ fi
# snippets are not going into the actual image
# snippets are not going into the actual image
if
[
"
$DEBUG
"
!=
2
]
;
then
rm
-r
.in/
;
fi
if
[
"
$DEBUG
"
!=
2
]
;
then
rm
-r
.in/
;
fi
# validate just in case (see also stage1 Makefile)
case
"
$GLOBAL_BOOTLOADER
"
in
isolinux|syslinux
)
;;
*
)
exit
0
;;
esac
# copy extra files, if any
SYSLINUX_FILES
=
"
$(
cat
.in/syslinux.list
)
"
if
[
-n
"
${
SYSLINUX_FILES
%
}
"
]
;
then
cp
-a
$SYSLINUX_FILES
.
fi
# prune module-specific config snippets; skip built-in one
SYSLINUX_MODULES
=
"
$(
cat
.in/modules.list
)
"
if
[
-n
"
$SYSLINUX_MODULES
"
]
;
then
for
module
in
$SYSLINUX_MODULES
;
do
if
[
"
$modules
"
==
"prompt"
]
;
then continue
;
fi
cp
-a
$MODDIR
/
$module
.c??
.
||
rm
.in/[0-9][0-9]
$module
.cfg
done
fi
# NB: there will be final macro expansion based on actual image sizes
# NB: there will be final macro expansion based on actual image sizes
# done by features.in/syslinux/scripts.d/20-propagator-ramdisk
# done by features.in/syslinux/scripts.d/20-propagator-ramdisk
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