playground/ebayer/scripts - Remove mudur stuff, they are in mainline mudur now

Erdem Bayer paketler-commits at pardus.org.tr
Mon Oct 11 23:12:32 EEST 2010


Author: ebayer
Date: Mon Oct 11 23:12:32 2010
New Revision: 102477

Modified:
   playground/ebayer/scripts/sysBaseMaker.lxc
Log:
Remove mudur stuff, they are in mainline mudur now

---
 sysBaseMaker.lxc |  153 -------------------------------------------------------
 1 file changed, 153 deletions(-)

Modified: playground/ebayer/scripts/sysBaseMaker.lxc
=================================================================
--- playground/ebayer/scripts/sysBaseMaker.lxc	(original)
+++ playground/ebayer/scripts/sysBaseMaker.lxc	Mon Oct 11 23:12:32 2010
@@ -146,156 +146,3 @@
 /sbin/route add default gw 192.168.3.1
 %%
 
-cd ${CHROOTDIR}/sbin/
-patch -p0 <<%%
---- mudur.py 2010-09-23 14:52:58.055581981 +0300
-+++ mudur.py 2010-09-23 15:19:32.102589640 +0300
-@@ -1190,11 +1190,11 @@
-     import shutil
- 
-     stop_services()
--    stop_udev()
-+    #stop_udev()
-     stop_dbus()
-     #stop_preload()
--    save_clock()
--    disable_swap()
-+    #save_clock()
-+    #disable_swap()
- 
-     def get_fs_entry():
-         ents = load_file("/proc/mounts").split("\n")
-@@ -1214,12 +1214,12 @@
-     ui.info(_("Unmounting filesystems"))
-     # write a reboot record to /var/log/wtmp before unmounting
-     run("/sbin/halt", "-w")
--    for dev in get_fs_entry():
--        if run_quiet("/bin/umount", dev[1]) != 0:
--            # kill processes still using this mount
--            run_quiet("/bin/fuser", "-k", "-9", "-m", dev[1])
--            time.sleep(2)
--            run_quiet("/bin/umount", "-f", "-r", dev[1])
-+    #for dev in get_fs_entry():
-+    #    if run_quiet("/bin/umount", dev[1]) != 0:
-+    #        # kill processes still using this mount
-+    #        run_quiet("/bin/fuser", "-k", "-9", "-m", dev[1])
-+    #        time.sleep(2)
-+    #        run_quiet("/bin/umount", "-f", "-r", dev[1])
- 
-     def remount_ro(force=False):
-         ents = load_file("/proc/mounts").split("\n")
-@@ -1243,14 +1243,14 @@
-             run_quiet("killall5", "-9")
-         return ret
- 
--    ui.info(_("Remounting remaining filesystems read-only"))
--    splash.update_progress(0)
-+    #ui.info(_("Remounting remaining filesystems read-only"))
-+    #splash.update_progress(0)
- 
-     # We parse /proc/mounts but use umount, so this have to agree
--    shutil.copy("/proc/mounts", "/etc/mtab")
--    if remount_ro():
--        if remount_ro():
--            remount_ro(True)
-+    #shutil.copy("/proc/mounts", "/etc/mtab")
-+    #if remount_ro():
-+    #    if remount_ro():
-+    #        remount_ro(True)
- 
- ##################
- # Exception hook #
-@@ -1299,14 +1299,14 @@
-     if sys.argv[1] == "sysinit":
- 
-         # Mount /proc if not mounted (backward-compatibility)
--        if not os.path.exists("/proc/cmdline"):
--            mount("/proc", "-t proc proc /proc")
--            config.parse_kernel_options()
--            load_translations()
-+        #if not os.path.exists("/proc/cmdline"):
-+        #    mount("/proc", "-t proc proc /proc")
-+        #    config.parse_kernel_options()
-+        #    load_translations()
- 
-         # Mount sysfs if not mounted (backward-compatibility)
--        if not os.path.exists("/sys/kernel"):
--            mount("/sys", "-t sysfs sysfs /sys")
-+        #if not os.path.exists("/sys/kernel"):
-+        #    mount("/sys", "-t sysfs sysfs /sys")
- 
-         # This is who we are...
-         ui.greet()
-@@ -1322,46 +1322,46 @@
-         write_to_file("/proc/sys/kernel/printk", "1")
- 
-         # Start udev and event triggering
--        start_udev()
-+        #start_udev()
- 
-         # Check root file system
--        check_root_filesystem()
-+        #check_root_filesystem()
- 
-         # Mount root file system
--        mount_root_filesystem()
-+        #mount_root_filesystem()
- 
-         # Start preload if possible
-         # start_preload()
- 
-         # Grab persistent rules and udev.log file from /dev
--        copy_udev_rules()
-+        #copy_udev_rules()
- 
-         # Set hostname
-         set_hostname()
- 
-         # Load modules manually written in /etc/modules.autoload.d/kernel-x.y
--        autoload_modules()
-+        #autoload_modules()
- 
-         # Check all filesystems
--        check_filesystems()
-+        #check_filesystems()
- 
-         # Mount local filesystems
--        mount_local_filesystems()
-+        #mount_local_filesystems()
- 
-         # Activate swap space
--        enable_swap()
-+        #enable_swap()
- 
-         # Set disk parameters using hdparm
--        set_disk_parameters()
-+        #set_disk_parameters()
- 
-         # Set the clock
--        set_clock()
-+        #set_clock()
- 
-         # Set the system language
-         set_system_language()
- 
-         # Wait for udev events to finish
--        run("/sbin/udevadm", "settle", "--timeout=60")
-+        #run("/sbin/udevadm", "settle", "--timeout=60")
- 
-         # When we exit this runlevel, init will write a boot record to utmp
-         write_to_file("/var/run/utmp")
-@@ -1409,9 +1409,9 @@
-         splash.init(75)
- 
-         # Trigger only the events which are failed during a previous run
--        if os.path.exists("/dev/.udev/failed"):
--            ui.info(_("Triggering udev events which are failed during a previous run"))
--            run("/sbin/udevadm", "trigger", "--type=failed")
-+        #if os.path.exists("/dev/.udev/failed"):
-+        #    ui.info(_("Triggering udev events which are failed during a previous run"))
-+        #    run("/sbin/udevadm", "trigger", "--type=failed")
- 
-         # Source local.start
-         if not config.get("safe") and os.path.exists("/etc/conf.d/local.start"):
-%%
-


More information about the paketler-commits mailing list