From 51390cc3780f481449aaaf8850e4ea6a5bdabf35 Mon Sep 17 00:00:00 2001 From: "tedbo@google.com" Date: Mon, 16 Nov 2009 19:09:06 +0000 Subject: [PATCH] Since postinst is part of installer, the software updater should depend on the installer package. Move postinst out of customize_rootfs and into the installer package (at least for now). Review URL: http://chromereview.prom.corp.google.com/1187059 git-svn-id: svn://chrome-svn/chromeos/trunk@252 06c00378-0e64-4dae-be16-12b19f9950a1 --- customize_rootfs.sh | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/customize_rootfs.sh b/customize_rootfs.sh index 21e0a76128..1b5bde6d10 100755 --- a/customize_rootfs.sh +++ b/customize_rootfs.sh @@ -122,30 +122,6 @@ apt-get --yes --force-yes --no-install-recommends \ rm -f /etc/localtime ln -s /mnt/stateful_partition/etc/localtime /etc/localtime -# The postinst script is called after an AutoUpdate or USB install. -# the quotes around EOF mean don't evaluate anything inside this HEREDOC. -# TODO(adlr): set this file up in a package rather than here -cat <<"EOF" > /usr/sbin/chromeos-postinst -#!/bin/sh - -set -e - -# update /boot/extlinux.conf -INSTALL_ROOT=`dirname "$0"` -INSTALL_DEV="$1" - -# 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 - -# NOTE: The stateful partition will not be mounted when this is -# called at USB-key install time. -EOF -chmod 0755 /usr/sbin/chromeos-postinst - -ln -s ./usr/sbin/chromeos-postinst /postinst - - # make a mountpoint for stateful partition sudo mkdir -p "$ROOTFS_DIR"/mnt/stateful_partition sudo chmod 0755 "$ROOTFS_DIR"/mnt @@ -386,4 +362,3 @@ cat < /etc/resolv.conf nameserver 127.0.0.1 EOF chmod a-wx /etc/resolv.conf -