Skip to content

Commit

Permalink
Always mount /kern on Xen
Browse files Browse the repository at this point in the history
  • Loading branch information
anttikantee committed Jun 19, 2015
1 parent d987fa7 commit cc0395d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions app-tools/rumprun
Expand Up @@ -392,6 +392,19 @@ json_store_iso_blkspec ()
json_finalize_block
}

json_store_kernfs ()
{

json_open_block blk

json_append_ln '"source": "dev"' # XXX: not really dev
json_append_ln '"path": "virtual"'
json_append_ln '"fstype": "kernfs"'
json_append_ln '"mountpoint": "/kern"'

json_finalize_block
}

parse_blkspec ()
{
spec=$1
Expand Down Expand Up @@ -505,6 +518,9 @@ run_xen ()
[ "$1" = "--" ] && shift
[ $# -lt 1 ] && usage

# kernfs is always present on Xen
json_store_kernfs

json_append_ln "\"cmdline\": \""$@"\""
json_finalize_block

Expand Down

0 comments on commit cc0395d

Please sign in to comment.