Revision 6f3e718d
b/common.sh.in | ||
---|---|---|
359 | 359 |
esac |
360 | 360 |
} |
361 | 361 |
|
362 |
filesystem_check() {
|
|
362 |
epilogue() {
|
|
363 | 363 |
local target=$1 |
364 | 364 |
if [ -z "$target" ] ; then |
365 | 365 |
log_error "target not set for filesystem_check" |
366 | 366 |
exit 1 |
367 | 367 |
fi |
368 | 368 |
|
369 |
get_os $target |
|
370 |
|
|
371 |
if [ "${OPERATING_SYSTEM}" = "fedora" ]; then |
|
369 |
get_os_type $target |
|
370 |
if [ "${OS_TYPE}" = "redhat" ]; then |
|
372 | 371 |
# we have to force a filesystem relabeling for SELinux after messing |
373 |
# around with the filesystem in fedora
|
|
372 |
# around with the filesystem in redhat-derived OSs
|
|
374 | 373 |
echo "Enforce an automatic relabeling in the initial boot process..." |
375 | 374 |
touch $target/.autorelabel |
376 | 375 |
fi |
b/create | ||
---|---|---|
1 |
#!/bin/bash
|
|
1 |
#!/bin/bas |
|
2 | 2 |
|
3 | 3 |
# Copyright (C) 2010 Oregon State University |
4 | 4 |
# |
... | ... | |
119 | 119 |
setup_console $TARGET |
120 | 120 |
fi |
121 | 121 |
|
122 |
filesystem_check $TARGET
|
|
122 |
epilogue $TARGET
|
|
123 | 123 |
|
124 | 124 |
RUN_PARTS=`which run-parts` |
125 | 125 |
|
Also available in: Unified diff