Modify method for turn on swap partition
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 22 Mar 2013 03:27:09 +0000 (12:27 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 22 Mar 2013 03:27:09 +0000 (12:27 +0900)
Don't turn on swap manually by using swapon command.
Using fstab instead.

Change-Id: I7b3b973d788d91682975d3808d190c8dd7828866
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
filesystem/usr/lib/systemd/system/emul-legacy-start.service
packaging/system-plugin-emulator.spec

index 99cb594..54378eb 100644 (file)
@@ -9,7 +9,5 @@ Type=oneshot
 
 # W/A for alarm-service
 ExecStartPre=/bin/touch /dev/rtc1
-# Enable swap partition
-ExecStartPre=/sbin/swapon /dev/vdb
 
 ExecStart=/etc/rc.d/rc.emul
index 693287b..39e9abe 100644 (file)
@@ -76,6 +76,7 @@ ln -sf /opt/usr/ug      /opt/ug
 if [ -e /etc/fstab ]; then
        echo "/opt/var   /var      bind    bind             0 0" >> /etc/fstab
        echo "/tmpfs     /tmp      tmpfs   defaults         0 0" >> /etc/fstab
+       echo "/dev/vdb   swap      swap    defaults         0 0" >> /etc/fstab
 fi
 
 #make rtc1 device for alarm service