mirror of
https://github.com/MichielDerhaeg/build-linux.git
synced 2025-09-02 20:52:36 +02:00
Ubuntu fixes
* use bash instead of sh * the grub version from ubuntu doesn't find it necessary to support msdos partitions because of 'losetup -P' so we force it
This commit is contained in:
@@ -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
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user