Skip to content

Commit a4b10cb

Browse files
preinstallimage: Don't include files generated by build script
As these files may get provided by further packages to be installed after the preinstall unpack. This leaded to a difference between a system installed via preinstallimage, which is fixed now. An example is the /etc/hosts file which is supposed to be created by netcfg instead. build#848
1 parent 78d4c5a commit a4b10cb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

init_buildsystem

+8
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,14 @@ test -c $BUILD_ROOT/dev/null || create_devs
12011201

12021202
cd $BUILD_ROOT || cleanup_and_exit 1
12031203

1204+
# exit early if we want to create a preinstall image
1205+
if test -n "$CREATE_PREINSTALL_DATA" ; then
1206+
rm -rf "$BUILD_INIT_CACHE"
1207+
rm -f $BUILD_IS_RUNNING
1208+
rm -f $TMPFILE
1209+
cleanup_and_exit 0
1210+
fi
1211+
12041212
#
12051213
# setup /etc/mtab
12061214
#

0 commit comments

Comments
 (0)