diff --git a/filesystem/build.sh b/filesystem/build.sh index 6c487df..70980c7 100755 --- a/filesystem/build.sh +++ b/filesystem/build.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash rm -rf root mkdir root @@ -19,7 +19,7 @@ install -d -m555 sys install -d -m0750 root install -d -m1777 tmp # vsftpd won't run with write perms on /srv/ftp -install -d -m555 -g ftp srv/ftp +#install -d -m555 -g ftp srv/ftp # setup /etc install -d etc/{ld.so.conf.d,skel,profile.d} @@ -30,7 +30,7 @@ ln -s /proc/self/mounts etc/mtab for f in shadow; do install -m600 "$srcdir"/$f etc/ done -install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh +#install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh # setup /var for d in cache local opt log/old lib/misc empty; do diff --git a/gen_image.sh b/gen_image.sh index 0153772..5e21cbd 100755 --- a/gen_image.sh +++ b/gen_image.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash if [[ $(id -u) -ne 0 ]]; then echo "run as root" @@ -18,7 +18,7 @@ mkdir -p mountdir mount $looppart mountdir cd mountdir tar --xattrs -xpf ../fs.tar -grub-install --locales="" --themes="" --target=i386-pc --boot-directory="$PWD/boot" $loopdevice +grub-install --modules=part_msdos --locales="" --themes="" --target=i386-pc --boot-directory="$PWD/boot" $loopdevice cd .. ## generate grub.cfg (since linux 3.8 32-bit MBR "NT disk signatures" are allowed)