blob: 3d81ad76ad2109f2d53c90ff4adb61414515e87f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/bash
# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES
#
# It is highly advisable to create own systemd services or udev rules
# to run scripts during boot instead of using this file.
#
# In contrast to previous versions due to parallel execution during boot
# this script will NOT be run after all other services.
#
# Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure
# that this script will be executed during boot.
exec 2> /tmp/rc.local.log # send stderr from rc.local to a log file
exec 1>&2 # send stdout to the same log file
echo "rc.local started" # show start of execution
set -x # tell sh to display commands before execution
touch /var/lock/subsys/local
vgchange -a y
mount /dev/VG_XenStorage-e73cd6ed-51b6-e311-5358-8602f04afc66/ISO /mnt/iso
echo "rc.local completed"
# don't forget
# chmod +x /etc/rc.d/rc.local
|