fix(*): use new stateful_partition location

moving /mnt/stateful_partition to /media/state
This commit is contained in:
Brandon Philips 2013-07-26 08:30:22 -07:00
parent b585ebc2d6
commit cb3e04d55b
3 changed files with 4 additions and 4 deletions

View File

@ -4,11 +4,11 @@ auth [success=ignore default=3] pam_exec.so \
# Check if a custom devmode password file exists and prefer it.
auth [success=ignore default=1] pam_exec.so \
quiet /usr/bin/test -f /mnt/stateful_partition/etc/devmode.passwd
quiet /usr/bin/test -f /media/state/etc/devmode.passwd
# If we get to pwdfile, use it or bypass the password-less login.
auth [success=done default=1] pam_pwdfile.so \
pwdfile /mnt/stateful_partition/etc/devmode.passwd
pwdfile /media/state/etc/devmode.passwd
# If we get here, allow password-less access
auth sufficient pam_exec.so quiet /usr/bin/crossystem cros_debug?1

View File

@ -284,7 +284,7 @@ pkg_postinst() {
# Some default directories. These are created here rather than at
# install because some of them may already exist and have mounts.
for x in /dev /home /media \
/mnt/stateful_partition /proc /root /sys /var/lock; do
/proc /root /sys /var/lock; do
[ -d "${ROOT}/$x" ] && continue
install -d --mode=0755 --owner=root --group=root "${ROOT}/$x"
done

View File

@ -7,7 +7,7 @@ MY_IP=$(curl -s $META_URL/meta-data/local-ipv4)
BOOTSTRAP="/var/run/etcd/bootstrap.config"
# for etcd
STATE=/mnt/stateful_partition/etcd
STATE=/media/state/etcd
mkdir -p $STATE
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1