# HG changeset patch # User Paul Boddie # Date 1530387454 -7200 # Node ID ad8f789a191cbb8f92d8804bab9460630f6552f3 # Parent 4f2e67a5ee0eaf9ef77d488b70fd6a02bcc214d5 Initialise /etc/mtab if not present. diff -r 4f2e67a5ee0e -r ad8f789a191c user-postsetup --- a/user-postsetup Sun Sep 27 15:33:06 2015 +0200 +++ b/user-postsetup Sat Jun 30 21:37:34 2018 +0200 @@ -1,6 +1,7 @@ #!/bin/sh -# Copyright (C) 2010, 2011, 2012, 2013, 2014 Paul Boddie +# Copyright (C) 2010, 2011, 2012, 2013, 2014, +# 2018 Paul Boddie # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software @@ -48,6 +49,10 @@ echo "Copying filesystems configuration..." 1>&2 $AS_USER cp /etc/fstab "$PACKAGEROOT/etc/" +if [ ! -e "$PACKAGEROOT/etc/mtab" ]; then + $AS_USER ln -s /proc/mounts "$PACKAGEROOT/etc/mtab" +fi + echo "Copying network configuration..." 1>&2 $AS_USER cp /etc/hosts "$PACKAGEROOT/etc/" $AS_USER cp /etc/network/interfaces "$PACKAGEROOT/etc/network/"