Reorder code
This commit is contained in:
parent
4b0bed4a4a
commit
1db33f5b69
1 changed files with 10 additions and 10 deletions
20
build.sh
20
build.sh
|
@ -150,6 +150,11 @@ fi
|
|||
rm -rf "$ROOTFS_DIR/.pc"
|
||||
mkdir "$ROOTFS_DIR/.pc"
|
||||
|
||||
##
|
||||
# Prevent services to start after package installation in chroot environment.
|
||||
#
|
||||
install -m 744 files/policy-rc.d "$ROOTFS_DIR/usr/sbin/policy-rc.d"
|
||||
|
||||
##
|
||||
# Mount virtual file systems.
|
||||
#
|
||||
|
@ -163,11 +168,6 @@ mount --bind /sys "$ROOTFS_DIR/sys"
|
|||
#
|
||||
ln -nsf /proc/mounts "$ROOTFS_DIR/etc/mtab"
|
||||
|
||||
##
|
||||
# Prevent services to start after package installation in chroot environment.
|
||||
#
|
||||
install -m 744 files/policy-rc.d "$ROOTFS_DIR/usr/sbin/policy-rc.d"
|
||||
|
||||
##
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
#
|
||||
|
@ -306,11 +306,6 @@ install -m 644 files/resolv.conf "$ROOTFS_DIR/etc/"
|
|||
#
|
||||
on_chroot fake-hwclock save
|
||||
|
||||
##
|
||||
# Allow services to start.
|
||||
#
|
||||
rm -f "$ROOTFS_DIR/usr/sbin/policy-rc.d"
|
||||
|
||||
##
|
||||
# Unmount virtual file systems.
|
||||
#
|
||||
|
@ -324,6 +319,11 @@ umount "$ROOTFS_DIR/dev"
|
|||
#
|
||||
rm -rf "$ROOTFS_DIR/.pc"
|
||||
|
||||
##
|
||||
# Allow services to start.
|
||||
#
|
||||
rm -f "$ROOTFS_DIR/usr/sbin/policy-rc.d"
|
||||
|
||||
##
|
||||
# Prepare image file systems.
|
||||
#
|
||||
|
|
Reference in a new issue