Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.package
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Douglas
slapos.package
Commits
46f16084
Commit
46f16084
authored
Feb 28, 2014
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preseed: script to generate a new preseed image.
parent
f55d5431
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
debian-preseed/build.sh
debian-preseed/build.sh
+36
-0
No files found.
debian-preseed/build.sh
0 → 100644
View file @
46f16084
#!/bin/bash
DEBIANVERSION
=
7.4.0
ISONAME
=
debian-
$DEBIANVERSION
-amd64-netinst
.iso
set
-e
if
[
!
-f
$ISONAME
]
;
then
wget http://cdimage.debian.org/debian-cd/
$DEBIANVERSION
/amd64/iso-cd/
$ISONAME
fi
mkdir
-p
loopdir
mount
-o
loop
$ISONAME
loopdir
#rm -rf cd
#mkdir cd
rsync
-a
-H
--exclude
=
TRANS.TBL loopdir/
cd
umount loopdir
mkdir
irmod
cd
irmod
# This path to install.amd can variate
INITRD_PATH
=
../cd/install.amd/initrd.gz
gzip
-d
<
$INITRD_PATH
| cpio
--extract
--verbose
--make-directories
--no-absolute-filenames
cp
../preseed.cfg preseed.cfg
find
.
| cpio
-H
newc
--create
--verbose
|
gzip
-9
>
$INITRD_PATH
cd
../
rm
-fr
irmod/
cd cd
md5sum
`
find
-follow
-type
f
`
>
md5sum.txt
cd
..
rm
-rf
$ISONAME
.patched
genisoimage
-o
$ISONAME
.patched
-r
-J
-no-emul-boot
-boot-load-size
4
-boot-info-table
-b
isolinux/isolinux.bin
-c
isolinux/boot.cat ./cd
isohybrid
$ISONAME
.patched
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