1. VectorLinux Core
  2. vinstall

Commits

Uelsk8s  committed 542dca0

relink rc files for live

  • Participants
  • Parent commits 4b1149c
  • Branches master

Comments (0)

Files changed (1)

File vinstall/controller/automatic.py

View file
  • Ignore whitespace
         target = os.path.join('/mnt', 'TARGET', 'boot', 'vmlinuz-%s' %
             kernel_version)
         shutil.copyfile(source, target)
+	for rc in ("rc.S", "rc.M", "rc.K", "rc.local"):
+	    source = os.path.join('/mnt', 'TARGET', 'etc', 'rc.d', '%s.real' %
+	        rc)
+	    target = os.path.join('/mnt', 'TARGET', 'etc', 'rc.d', rc)
+	    os.remove(target)
+	    os.symlink(source, target)
 
     def fstab(self, disk):
         """Create and install a fstab file in disk