1.1 --- a/user-postsetup Sun Sep 27 15:33:06 2015 +0200
1.2 +++ b/user-postsetup Sat Jun 30 21:37:34 2018 +0200
1.3 @@ -1,6 +1,7 @@
1.4 #!/bin/sh
1.5
1.6 -# Copyright (C) 2010, 2011, 2012, 2013, 2014 Paul Boddie <paul@boddie.org.uk>
1.7 +# Copyright (C) 2010, 2011, 2012, 2013, 2014,
1.8 +# 2018 Paul Boddie <paul@boddie.org.uk>
1.9 #
1.10 # This program is free software; you can redistribute it and/or modify it under
1.11 # the terms of the GNU General Public License as published by the Free Software
1.12 @@ -48,6 +49,10 @@
1.13 echo "Copying filesystems configuration..." 1>&2
1.14 $AS_USER cp /etc/fstab "$PACKAGEROOT/etc/"
1.15
1.16 +if [ ! -e "$PACKAGEROOT/etc/mtab" ]; then
1.17 + $AS_USER ln -s /proc/mounts "$PACKAGEROOT/etc/mtab"
1.18 +fi
1.19 +
1.20 echo "Copying network configuration..." 1>&2
1.21 $AS_USER cp /etc/hosts "$PACKAGEROOT/etc/"
1.22 $AS_USER cp /etc/network/interfaces "$PACKAGEROOT/etc/network/"