~openstack-charmers-next/charms/xenial/nova-compute/trunk

« back to all changes in this revision

Viewing changes to files/qemu-hugefsdir

  • Committer: James Page
  • Date: 2015-09-01 09:34:31 UTC
  • mfrom: (151.1.12 trunk)
  • Revision ID: james.page@ubuntu.com-20150901093431-ectw9sny3cuzhxqn
[gnuoy,james-page,r=james-page] Add optional support for hugepage qemu configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
### BEGIN INIT INFO
 
4
# Required-Start:    $local_fs
 
5
# Required-Stop:     $local_fs
 
6
# Provides:          qemu-hugefsdir
 
7
# Default-Start:     2 3 4 5
 
8
# Default-Stop:      0 6
 
9
# Short-Description: Make sure qemu gets a temp hugetblfs dir
 
10
# Description:       Make sure qemu gets a temp hugetblfs dir
 
11
### END INIT INFO
 
12
 
 
13
mkdir -p /run/hugepages/kvm/libvirt/qemu || true
 
14
chown libvirt-qemu:libvirtd /run/hugepages/kvm/libvirt/qemu