mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
postinst: don't edit fstab
Review URL: http://chromereview.prom.corp.google.com/1181005 git-svn-id: svn://chrome-svn/chromeos/trunk@120 06c00378-0e64-4dae-be16-12b19f9950a1
This commit is contained in:
parent
edabc59e31
commit
b3e0d3f9be
@ -155,16 +155,11 @@ set -e
|
||||
# update /boot/extlinux.conf
|
||||
INSTALL_ROOT=`dirname "$0"`
|
||||
INSTALL_DEV="$1"
|
||||
STATEFUL_PARTITION=$(echo "$INSTALL_DEV" | tr 1234 4411)
|
||||
|
||||
# set default label to chromeos-hd
|
||||
sed -i 's/^DEFAULT .*/DEFAULT chromeos-hd/' "$INSTALL_ROOT"/boot/extlinux.conf
|
||||
sed -i "{ s:HDROOT:$INSTALL_DEV: }" "$INSTALL_ROOT"/boot/extlinux.conf
|
||||
|
||||
# update /etc/fstab
|
||||
sed -i "s|^[^ ]* /mnt/stateful_partition |\
|
||||
$STATEFUL_PARTITION /mnt/stateful_partition |" "$INSTALL_ROOT"/etc/fstab
|
||||
|
||||
# NOTE: The stateful partition will not be mounted when this is
|
||||
# called at USB-key install time.
|
||||
EOF
|
||||
|
Loading…
Reference in New Issue
Block a user