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
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
95264771
Commit
95264771
authored
Dec 04, 2015
by
Alexey Shabalin
Committed by
Michael Shigorin
Mar 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- add virtio modules to initrd
- add output to console=ttS0 for run in cloud
parent
ad4bffe9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
tar2fs
bin/tar2fs
+3
-2
No files found.
bin/tar2fs
View file @
95264771
...
...
@@ -34,7 +34,7 @@ BOOTPART=
case
"
`
arch
`
"
in
# NB: sudo => no GLOBAL_ will do either; mind qemu-*
*
86
*
)
# NB: different storage modules might be needed for non-kvm
INITRD_MODULES
=
"sd_mod ata_piix ahci"
INITRD_MODULES
=
"sd_mod ata_piix ahci
virtio-scsi virtio-blk
"
BLOCKDEV
=
"/dev/sda"
# might be /dev/vda for virtio
ROOTPART
=
"1"
;;
...
...
@@ -203,6 +203,7 @@ if [ -n "$BOOTPART" ]; then
fi
echo
"MODULES_PRELOAD +=
$INITRD_MODULES
$ROOTFSTYPE
"
>>
"
$ROOTFS
/etc/initrd.mk"
echo
"FEATURES += qemu"
>>
"
$ROOTFS
/etc/initrd.mk"
KERNEL
=
"
$(
readlink
$ROOTFS
/boot/vmlinuz |
sed
's,vmlinuz-,,'
)
"
chroot
"
$ROOTFS
"
make-initrd
-k
"
$KERNEL
"
...
...
@@ -220,7 +221,7 @@ delay=1
vga=0
image=/boot/vmlinuz
initrd=/boot/initrd.img
append=
\"
root=
$ROOTDEV
rootdelay=3
quiet
\"
append=
\"
root=
$ROOTDEV
rootdelay=3
console=tty1 console=ttyS0,115200n8
\"
label=linux"
cat
>
"
$ROOTFS
"
/etc/lilo-loop.conf
<<-
EOF
...
...
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