mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 17:36: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.
|
# Check if a custom devmode password file exists and prefer it.
|
||||||
auth [success=ignore default=1] pam_exec.so \
|
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.
|
# If we get to pwdfile, use it or bypass the password-less login.
|
||||||
auth [success=done default=1] pam_pwdfile.so \
|
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
|
# If we get here, allow password-less access
|
||||||
auth sufficient pam_exec.so quiet /usr/bin/crossystem cros_debug?1
|
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
|
# Some default directories. These are created here rather than at
|
||||||
# install because some of them may already exist and have mounts.
|
# install because some of them may already exist and have mounts.
|
||||||
for x in /dev /home /media \
|
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
|
[ -d "${ROOT}/$x" ] && continue
|
||||||
install -d --mode=0755 --owner=root --group=root "${ROOT}/$x"
|
install -d --mode=0755 --owner=root --group=root "${ROOT}/$x"
|
||||||
done
|
done
|
||||||
|
@ -7,7 +7,7 @@ MY_IP=$(curl -s $META_URL/meta-data/local-ipv4)
|
|||||||
BOOTSTRAP="/var/run/etcd/bootstrap.config"
|
BOOTSTRAP="/var/run/etcd/bootstrap.config"
|
||||||
|
|
||||||
# for etcd
|
# for etcd
|
||||||
STATE=/mnt/stateful_partition/etcd
|
STATE=/media/state/etcd
|
||||||
mkdir -p $STATE
|
mkdir -p $STATE
|
||||||
|
|
||||||
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
|
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user