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
afde4945
Commit
afde4945
authored
Aug 07, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hdt: refactoring 10-hdt-img
The following problems are solved: - syslinux/isolinux.cfg should not be deleted - isolinux.cfg should not be in hdt.img - syslinux/pci.ids should not be in iso.
parent
592d6565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
10-hdt-img
features.in/hdt/stage1/scripts.d/10-hdt-img
+14
-10
No files found.
features.in/hdt/stage1/scripts.d/10-hdt-img
View file @
afde4945
...
@@ -2,10 +2,11 @@
...
@@ -2,10 +2,11 @@
[
"
${
GLOBAL_BOOTLOADER
-
}
"
=
grubpcboot
]
||
exit
0
[
"
${
GLOBAL_BOOTLOADER
-
}
"
=
grubpcboot
]
||
exit
0
cd
"
$WORKDIR
"
cd
/tmp
rm
-fr
syslinux
mkdir
-p
boot syslinux
mkdir
syslinux
cp
/usr/lib/syslinux/hdt.c32
"
$WORKDIR
"
/syslinux/
cp
/usr/lib/syslinux/hdt.c32 syslinux/
mv
"
$WORKDIR
"
/syslinux/pci.ids syslinux/
cat
>
syslinux/syslinux.cfg
<<
EOF
cat
>
syslinux/syslinux.cfg
<<
EOF
default hdt
default hdt
...
@@ -16,12 +17,15 @@ label hdt
...
@@ -16,12 +17,15 @@ label hdt
EOF
EOF
# floppy disk 720 KiB
# floppy disk 720 KiB
dd
if
=
/dev/zero
of
=
boot/hdt.img
bs
=
512
count
=
"1440"
mkdir
-p
"
$WORKDIR
"
/boot
mkfs.fat
-n
HDT
-F
12 boot/hdt.img
dd
if
=
/dev/zero
of
=
"
$WORKDIR
"
/boot/hdt.img
bs
=
512
count
=
"1440"
mcopy
-i
boot/hdt.img
-s
syslinux ::
mkfs.fat
-n
HDT
-F
12
"
$WORKDIR
"
/boot/hdt.img
mcopy
-i
"
$WORKDIR
"
/boot/hdt.img
-s
syslinux ::
# clean /tmp
rm
-r
syslinux
#dd if=/usr/lib/syslinux/ldlinux.bss of=boot/hdt.img conv=notrunc
#dd if=/usr/lib/syslinux/ldlinux.bss of=boot/hdt.img conv=notrunc
syslinux
-d
/syslinux
--install
boot/hdt.img
syslinux
-d
/syslinux
--install
"
$WORKDIR
"
/
boot/hdt.img
rm
-r
syslinux
cp
/usr/lib/syslinux/memdisk
"
$WORKDIR
"
/boot
cp
/usr/lib/syslinux/memdisk boot
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