[archiso] Delete etc/mtab on _cleanup step
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
0d895a225a
commit
93763a2d82
2 changed files with 4 additions and 3 deletions
|
@ -191,6 +191,10 @@ _cleanup () {
|
|||
if [[ -d "${work_dir}/root-image/tmp" ]]; then
|
||||
find "${work_dir}/root-image/tmp" -mindepth 1 -delete
|
||||
fi
|
||||
# Delete etc/mtab if not is a symlink.
|
||||
if [[ ! -L "${work_dir}/root-image/etc/mtab" ]]; then
|
||||
rm -f "${work_dir}/root-image/etc/mtab"
|
||||
fi
|
||||
}
|
||||
|
||||
# Makes a SquashFS filesystem image of file/directory passes as argument with desired compression.
|
||||
|
|
|
@ -34,9 +34,6 @@ make_customize_root_image() {
|
|||
cp -af root-image ${work_dir}
|
||||
chmod 750 ${work_dir}/root-image/etc/sudoers.d
|
||||
chmod 440 ${work_dir}/root-image/etc/sudoers.d/g_wheel
|
||||
if [[ ! -L ${work_dir}/root-image/etc/mtab ]]; then
|
||||
rm -f ${work_dir}/root-image/etc/mtab
|
||||
fi
|
||||
mkdir -p ${work_dir}/root-image/etc/pacman.d
|
||||
wget -O ${work_dir}/root-image/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/all/
|
||||
sed -i "s/#Server/Server/g" ${work_dir}/root-image/etc/pacman.d/mirrorlist
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue