Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TARDIS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
TARDIS
Commits
d069077a
Commit
d069077a
authored
6 years ago
by
OSAK Buildhauer
Browse files
Options
Downloads
Patches
Plain Diff
Now the shell script that assembles the TARDIS is git-ed, 1st version.
parents
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
assemble_image.sh
+40
-0
40 additions, 0 deletions
assemble_image.sh
with
40 additions
and
0 deletions
assemble_image.sh
0 → 100755
+
40
−
0
View file @
d069077a
#!/bin/bash
set
-x
image_size
=
"3G"
iso_file
=
"ubuntu-18.04.1-desktop-amd64.iso"
# mtools, ddrescure, fdisk, grub, 7z
rm
-rf
part_files
mkdir
-p
part_files
git
-C
part_files clone https://git.fsmpi.rwth-aachen.de/osak/lipstick.git
.
#rsync -av /usr/lib/grub/x86_64-efi part_files/grub
#mkdir -p part_files/efi/ubuntu
#rsync -av /usr/lib/grub/x86_64-efi part_files/efi/ubuntu
rsync
-av
/usr/lib/grub/i386-efi part_files/grub
rsync
-av
/usr/lib/grub/i386-pc part_files/grub
rsync
-av
/usr/share/grub/themes part_files/grub
mkdir
-p
part_files/grub/fonts/
rsync
-av
/usr/share/grub/unicode.pf2 part_files/grub/fonts/
7z x
"
$iso_file
"
-opart_files
EFI/
7z x
"
$iso_file
"
-opart_files
boot/grub/x86_64-efi
mv
part_files/grub/
*
part_files/boot/grub/
rm
-rf
part_files/grub
#wget -O part_files/gparted-live-i686.iso https://sourceforge.net/projects/gparted/files/gparted-live-stable/0.28.1-1/gparted-live-i686.iso
wget
-O
part_files/gparted-live-i686.iso https://sourceforge.net/projects/gparted/files/gparted-live-stable/0.28.1-1/gparted-live-x86_64.iso
ln
"
$iso_file
"
part_files/
rm
part.img
truncate
-s
"
$image_size
"
part.img
mkfs.vfat
-n
"LIPSTICK"
"part.img"
MTOOLS_SKIP_CHECK
=
1 mcopy
-i
part.img
-b
-s
-v
part_files/
*
::
grub-mkimage
--prefix
"(hd0,msdos1)/boot/grub"
--output
"grub.i386-pc.img"
--format
"i386-pc"
part_msdos fat ext2 biosdisk
dd
if
=
/usr/lib/grub/i386-pc/boot.img
of
=
"output.img"
bs
=
446
count
=
1
dd
if
=
"grub.i386-pc.img"
of
=
"output.img"
bs
=
512
seek
=
1
ddrescue
--output-position
=
2048s
--sparse
"part.img"
"output.img"
printf
"label: dos
\n
unit: sectors
\n
2048,+,b,*
\n
"
| sfdisk
"output.img"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment