XenServer: Fix initramfs scripts
During bashate -ing some files with .sh extension has been modified, which are interpreted with /bin/sh, which takes a different syntax. Fixing the issue: - rename the files, so they are not picked up - use syntax that's understood by sh Change-Id: I617b24813df86687ca33745d0c940b0c659f2e14
This commit is contained in:
parent
5955b11544
commit
76dd12c9a5
@ -163,11 +163,11 @@ function get_state {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function create_resizing_initramfs_config {
|
function create_resizing_initramfs_config {
|
||||||
cp "$THIS_DIR/xenserver_helper_initramfs_hook.sh" \
|
cp "$THIS_DIR/xenserver_helper_initramfs_hook" \
|
||||||
/usr/share/initramfs-tools/hooks/resize
|
/usr/share/initramfs-tools/hooks/resize
|
||||||
chmod +x /usr/share/initramfs-tools/hooks/resize
|
chmod +x /usr/share/initramfs-tools/hooks/resize
|
||||||
|
|
||||||
cp "$THIS_DIR/xenserver_helper_initramfs_premount.sh" \
|
cp "$THIS_DIR/xenserver_helper_initramfs_premount" \
|
||||||
/usr/share/initramfs-tools/scripts/local-premount/resize
|
/usr/share/initramfs-tools/scripts/local-premount/resize
|
||||||
chmod +x /usr/share/initramfs-tools/scripts/local-premount/resize
|
chmod +x /usr/share/initramfs-tools/scripts/local-premount/resize
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
PREREQ=""
|
PREREQ=""
|
||||||
|
|
||||||
function prereqs {
|
prereqs () {
|
||||||
echo "${PREREQ}"
|
echo "${PREREQ}"
|
||||||
}
|
}
|
||||||
|
|
@ -5,7 +5,8 @@ set -ex
|
|||||||
PREREQ=""
|
PREREQ=""
|
||||||
|
|
||||||
# Output pre-requisites
|
# Output pre-requisites
|
||||||
function prereqs {
|
prereqs()
|
||||||
|
{
|
||||||
echo "$PREREQ"
|
echo "$PREREQ"
|
||||||
}
|
}
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user