Skip to content

Commit

Permalink
Adding commented 'set -e' explicitly in all subscripts to avoid runni…
Browse files Browse the repository at this point in the history
…ng it with 'set -e' until we've made sure it's properly working.
  • Loading branch information
daniel-baumann committed Jun 5, 2012
1 parent 6d3f4fd commit 23c2e9f
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions initramfs-tools/scripts/live
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

if [ -e /lib/live/boot.sh ]
then
/lib/live/boot.sh ${@}
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/arguments.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

Arguments ()
{
PRESEEDS=""
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/misc-helpers.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

is_in_list_separator_helper () {
local sep=${1}
shift
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/mount-cifs.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_cifsmount ()
{
rc=1
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/mount-http.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_httpmount ()
{
rc=1
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/mount-iscsi.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_iscsi()
{
do_netsetup
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/mount-nfs.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_nfsmount ()
{
rc=1
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/netboot.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_netmount()
{
do_netsetup
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/networking.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_netsetup ()
{
modprobe -q af_packet # For DHCP
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/overlay.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

setup_unionfs ()
{
image_directory="${1}"
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/snapshot.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

do_snap_copy ()
{
fromdev="${1}"
Expand Down
2 changes: 2 additions & 0 deletions scripts/boot/toram-todisk.sh
@@ -1,5 +1,7 @@
#!/bin/sh

#set -e

copy_live_to ()
{
copyfrom="${1}"
Expand Down

0 comments on commit 23c2e9f

Please sign in to comment.