Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

jbrunner/lxc-initscripts-patch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

lxc-initscripts-patch

Patch CentOS 6.x initscripts for lxc guests.

The lxc centos template applies a patch to /etc/rc.d/rc.sysinit wich is provided by the initscripts package.

After upgrading initscripts using yum, the patch is lost. The linux container is not bootable anymore. Errors shown:

Starting udev: mkdir: cannot create directory `/dev/pts': File exists

lxc-initscripts-patch put a trigger in initscript which runs when the installation status of initscript changes. The script applies the patch from the centos template again.

Install

yum install rpm-build
mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
rpmbuild -bb lxc-initscripts-patch.spec
sudo rpm -Uvh ~/rpmbuild/RPMS/noarch/lxc-initscripts-patch-1.0.0-1.noarch

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published