Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Better device naming
Browse files Browse the repository at this point in the history
  • Loading branch information
erichs committed Jun 12, 2014
1 parent 09a435a commit 634efa9
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions data/user_data.sh.erb
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mount -t proc none $imagedir/proc/
mount -t sysfs none $imagedir/sys/
mount -o bind /dev $imagedir/dev/

# prevent daemons from starting during apt-get
# prevent daemons from starting during apt-get
cat <<EOF | tee $imagedir/usr/sbin/policy-rc.d > /dev/null
#!/bin/sh
exit 101
Expand Down Expand Up @@ -66,9 +66,8 @@ rm -f $imagedir/usr/sbin/policy-rc.d
# Wait for EBS volume to be attached
dev=<%= ebs_device %>

# Device names changed in precise/sid. lsb_release modules arent loaded so use debian_version.
codename=$(cat /etc/debian_version)
if [ "$codename" == "wheezy/sid" ]; then
# Device names changed in precise/sid.
if [ -e /dev/xvdi ]; then
dev="/dev/xvdi"
fi

Expand Down

0 comments on commit 634efa9

Please sign in to comment.