Fix mtab creation for grub installation.

This commit is contained in:
Arne Fitzenreiter
2010-07-23 17:40:53 +02:00
parent 8e7778a8fc
commit 3e1bab93c1

View File

@@ -542,7 +542,7 @@ int main(int argc, char *argv[])
replace( "/harddisk/boot/grub/grub.conf", "root=ROOT", string);
mysystem("ln -s grub.conf /harddisk/boot/grub/menu.lst");
system("sed -e 's#harddisk\\/##g' < /proc/mounts > /harddisk/etc/mtab");
system("sed -e 's#/harddisk#/#g' -e 's#//#/#g' < /proc/mounts > /harddisk/etc/mtab");
snprintf(commandstring, STRING_SIZE,
"/sbin/chroot /harddisk /usr/sbin/grub-install --no-floppy %s", hdparams.devnode_disk);