mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 01:16:59 +02:00
fix(*): use new stateful_partition location
moving /mnt/stateful_partition to /media/state
This commit is contained in:
parent
b585ebc2d6
commit
cb3e04d55b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user