Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP3:GA
libvirt.11696
lxc-convert-fix-sle11-rootfs.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File lxc-convert-fix-sle11-rootfs.patch of Package libvirt.11696
Index: libvirt-1.2.18.4/examples/lxcconvert/virt-lxc-convert =================================================================== --- libvirt-1.2.18.4.orig/examples/lxcconvert/virt-lxc-convert +++ libvirt-1.2.18.4/examples/lxcconvert/virt-lxc-convert @@ -124,4 +124,21 @@ if test -z "$mem_limit"; then fi virsh -c lxc:/// domxml-from-native lxc-tools $conf_new -exit $? +result=$? + +# The rootfs for SLE11 guests will need some tweaks to run +rootfs=$(sed -n "/lxc.rootfs[[:space:]]*=/ s/lxc.rootfs[[:space:]]*=[[:space:]]\(.*\)$/\1/p" "$conf_new") +if test -d $rootfs; then + if test -w $rootfs/etc/init.d/boot; then + sed -i 's/"lxc"/"lxc-libvirt"/' $rootfs/etc/init.d/boot + fi + + if test -w $rootfs/etc/securetty && \ + test -z "$(grep 'pts/0' $rootfs/etc/securetty)"; then + echo "pts/0" >> $rootfs/etc/securetty + fi +else + echo "Root file system $rootfs doesn't exist" >&2 + result=1 +fi +exit $result
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor