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
3d10c59d
Commit
3d10c59d
authored
Aug 22, 2011
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test-based ramdisk size for live squashfs images
Implementation based on m-p-d::profiles/scripts.d/03-syslinux (but heavily modified for m-p of course)
parent
3a5b47e7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
6 deletions
+43
-6
assumptions.txt
doc/assumptions.txt
+10
-0
Makefile
features.in/Makefile
+13
-0
15live.cfg
features.in/syslinux/cfg.in/15live.cfg
+1
-2
20install2.cfg
features.in/syslinux/cfg.in/20install2.cfg
+2
-2
80rescue.cfg
features.in/syslinux/cfg.in/80rescue.cfg
+1
-2
20-propagator-ramdisk
features.in/syslinux/scripts.d/20-propagator-ramdisk
+13
-0
01-syslinux
features.in/syslinux/stage1/scripts.d/01-syslinux
+3
-0
No files found.
doc/assumptions.txt
View file @
3d10c59d
...
...
@@ -15,3 +15,13 @@
+ если добавить какой-либо kernel-image в STAGE1_PACKAGES*,
результат может быть неожиданным
+ вероятная ошибка: незагрузка полученного squashfs
- features.in/install2/install2/stage2cfg.mk
- features.in/live/live/stage2cfg.mk
- features.in/rescue/rescue/stage2cfg.mk
- features.in/syslinux/cfg.in/15live.cfg
- features.in/syslinux/cfg.in/20install2.cfg
- features.in/syslinux/cfg.in/80rescue.cfg
- features.in/syslinux/scripts.d/20-propagator-ramdisk
+ ожидают, что названия squashfs-образов второй стадии инсталятора,
livecd и спасательной системы соответственно altinst, live и rescue
features.in/Makefile
View file @
3d10c59d
...
...
@@ -32,6 +32,19 @@ all:
fi
;
\
fi
;
\
done
;
\
for
scripts
in
scripts.d image-scripts.d
;
do
\
if
test
-d
"
$(BUILDDIR)
/
$$
scripts"
-a
\
-d
"
$$
dir/
$$
scripts"
;
then
\
if
rsync
-qab
"
$$
dir/
$$
scripts/"
\
"
$(BUILDDIR)
/
$$
scripts/"
;
then
\
type
-t
git
>
&/dev/null
&&
\
pushd
"
$(BUILDDIR)
/
$$
scripts/"
&&
\
git add
.
&&
\
git commit
-qam
"
$$
dir feature (toplevel
$$
scripts)"
||
:
;
\
popd
;
\
fi
;
\
fi
;
\
done
;
\
if
test
-x
"
$$
dir/generate.sh"
;
then
\
pushd
"
$$
dir"
&&
\
sh generate.sh
;
\
...
...
features.in/syslinux/cfg.in/15live.cfg
View file @
3d10c59d
label live
menu label ^LiveCD (no hard disk needed)
kernel alt0/vmlinuz
append initrd=alt0/full.cz live ramdisk_size=72000 fastboot stagename=live showopts automatic=method:cdrom
### FIXME: see m-p-d::profiles/scripts.d/03-syslinux
append initrd=alt0/full.cz live ramdisk_size=@live_size@ fastboot stagename=live showopts automatic=method:cdrom
features.in/syslinux/cfg.in/20install2.cfg
View file @
3d10c59d
label linux
menu label ^Install ALT Linux
kernel alt0/vmlinuz
append initrd=alt0/full.cz changedisk vga=0x314 quiet=1 showopts automatic=method:cdrom
append initrd=alt0/full.cz
ramdisk_size=@altinst_size@
changedisk vga=0x314 quiet=1 showopts automatic=method:cdrom
label noapic
menu label ^Failsafe install
kernel alt0/vmlinuz
append initrd=alt0/full.cz changedisk showopts nolapic noapic
append initrd=alt0/full.cz
ramdisk_size=@altinst_size@
changedisk showopts nolapic noapic
features.in/syslinux/cfg.in/80rescue.cfg
View file @
3d10c59d
label rescue
menu label ^Rescue LiveCD
kernel alt0/vmlinuz
append initrd=alt0/full.cz live ramdisk_size=72000 fastboot stagename=rescue showopts automatic=method:cdrom
### FIXME: see m-p-d::profiles/scripts.d/03-syslinux
append initrd=alt0/full.cz live ramdisk_size=@rescue_size@ fastboot stagename=rescue showopts automatic=method:cdrom
features.in/syslinux/scripts.d/20-propagator-ramdisk
0 → 100755
View file @
3d10c59d
#!/bin/sh -x
# postprocess isolinux configuration
# when the image sizes are finally known
cd
"
$WORKDIR
"
# apply size census while looking for potential squashfs images
find
-maxdepth
1
-type
f
-size
+1M
\
|
sed
's,^\./,,'
\
|
while
read
image
;
do
size
=
"
$[
$(
stat
-c
%s
"
$image
"
)
/ 1024 + 1 ]"
sed
-i
"s,@
${
image
}
_size@,
$size
,"
syslinux/
*
.cfg
done
features.in/syslinux/stage1/scripts.d/01-syslinux
View file @
3d10c59d
...
...
@@ -34,3 +34,6 @@ grep -hv '^#' .in/[0-9][0-9]*.cfg > "$BOOTLOADER.cfg"
# snippets are not going into the actual image
if
test
"
$DEBUG
"
!=
2
;
then
rm
-r
.in/
;
fi
# NB: there will be final macro expansion based on actual image sizes
# (done by ../../scripts.d/10-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