Create a new core pkg, pfSense-rc, that will install /etc/rc. Add this package to kernel list if dependencies to make sure it's upgraded before reboot. It should fix #5457

This commit is contained in:
Renato Botelho 2015-11-16 16:49:29 -02:00
parent 16060c78ac
commit dab31392f9
4 changed files with 6 additions and 3 deletions

View File

@ -1060,6 +1060,7 @@ clone_to_staging_area() {
-X ${_exclude_files} \
.
core_pkg_create rc "" ${CORE_PKG_VERSION} ${STAGE_CHROOT_DIR}
core_pkg_create base "" ${CORE_PKG_VERSION} ${STAGE_CHROOT_DIR}
core_pkg_create base-nanobsd "" ${CORE_PKG_VERSION} ${STAGE_CHROOT_DIR}
core_pkg_create default-config "" ${CORE_PKG_VERSION} ${STAGE_CHROOT_DIR}
@ -1119,6 +1120,8 @@ customize_stagearea_for_image() {
# Prepare final stage area
create_final_staging_area
pkg_chroot_add ${FINAL_CHROOT_DIR} rc
if [ "${1}" = "nanobsd" -o \
"${1}" = "nanobsd-vga" ]; then

View File

@ -7,7 +7,7 @@ EOD
maintainer: development@pfsense.org
prefix: /usr/local
deps: {
"%%PRODUCT_NAME%%-rc": {origin: "security/%%PRODUCT_NAME%%-rc", version: "%%VERSION%%"}
}
categories [ security, ]
licenselogic: single

View File

@ -7,7 +7,7 @@ EOD
maintainer: development@pfsense.org
prefix: /usr/local
deps: {
"%%PRODUCT_NAME%%-rc": {origin: "security/%%PRODUCT_NAME%%-rc", version: "%%VERSION%%"}
}
categories [ security, ]
licenselogic: single

View File

@ -7,7 +7,7 @@ EOD
maintainer: development@pfsense.org
prefix: /
deps: {
"%%PRODUCT_NAME%%-rc": {origin: "security/%%PRODUCT_NAME%%-rc", version: "%%VERSION%%"}
}
categories [ security, ]
licenselogic: single