Skip to content

Commit

Permalink
Update 'README.md'
Browse files Browse the repository at this point in the history
  • Loading branch information
wutcat committed Jul 10, 2018
1 parent 20b3064 commit cc792ee
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,19 @@ dracut -N -a tmpfs-root -f /boot/initrd-tmpfs.img
Create a suitable image archive
-------------------------------

How you get your image is up to you. For KVM VMs, you can use guestfish:
How you get your image is up to you. For now, the image must be a gzipped tarball with permissions preserved (SELinux contexts will be restored from `/etc/selinux/...` after the image is extracted).

For KVM VMs, you can use guestfish:
```shell
guestfish --ro -a /work/disk.img -i copy-out / /work/newroot/
tar czpf /work/rootfs.tar.gz
cd /work/newroot
tar cpzf /work/rootfs.tar.gz .
```

Or simply tarball an offline root filesystem:
```shell
mount /dev/centos/root /mnt
tar cpzf rootfs.tgz -C /mnt
```

Kernel cmdline arguments
Expand Down

0 comments on commit cc792ee

Please sign in to comment.