Skip to content

Commit

Permalink
Try not to mangle x86 filesystem.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 17, 2009
1 parent 35aae4b commit dd909fc
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions misc/merge.sh
Expand Up @@ -26,8 +26,13 @@ rm -f /x86_64/lib/ld-linux.so.2
ln -s ld-2.9.so /x86_64/lib/ld-linux.so.2

# other issues.
rm -rf /x86/lib/udev/devices
rm -rf /x86/usr/bin/X11
if [ -d /x86/lib/udev/devices ] ; then
mv /x86/lib/udev/devices /x86/tmp_devices
fi

if [ -d /x86/usr/bin/X11 ]; then
mv /x86/usr/bin/X11 /x86/tmp_X11
fi

# Make sure the home directory is gone.
rm -rf /x86_64/home/fatelf
Expand Down Expand Up @@ -78,9 +83,13 @@ ln -s /lib /x86_64/lib64
mkdir -p /x86_64/boot/x86_64
mkdir -p /x86_64/boot/x86
mv /x86_64/boot/*-generic /x86_64/boot/x86_64/
mv /x86/boot/*-generic /x86_64/boot/x86/
cp -av /x86/boot/*-generic /x86_64/boot/x86/
cp ../grubmenu.txt /x86_64/boot/grub/menu.lst

# Put some things back.
mv /x86/tmp_devices /x86/lib/udev/devices
mv /x86/tmp_X11 /x86/usr/bin/X11

umount /x86
umount /x86_64

Expand Down

0 comments on commit dd909fc

Please sign in to comment.