mirror of
https://github.com/MichielDerhaeg/build-linux.git
synced 2025-09-03 05:02: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
|
rm -rf root
|
||||||
mkdir root
|
mkdir root
|
||||||
@@ -19,7 +19,7 @@ install -d -m555 sys
|
|||||||
install -d -m0750 root
|
install -d -m0750 root
|
||||||
install -d -m1777 tmp
|
install -d -m1777 tmp
|
||||||
# vsftpd won't run with write perms on /srv/ftp
|
# 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
|
# setup /etc
|
||||||
install -d etc/{ld.so.conf.d,skel,profile.d}
|
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
|
for f in shadow; do
|
||||||
install -m600 "$srcdir"/$f etc/
|
install -m600 "$srcdir"/$f etc/
|
||||||
done
|
done
|
||||||
install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh
|
#install -m755 "$srcdir"/locale.sh etc/profile.d/locale.sh
|
||||||
|
|
||||||
# setup /var
|
# setup /var
|
||||||
for d in cache local opt log/old lib/misc empty; do
|
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
|
if [[ $(id -u) -ne 0 ]]; then
|
||||||
echo "run as root"
|
echo "run as root"
|
||||||
@@ -18,7 +18,7 @@ mkdir -p mountdir
|
|||||||
mount $looppart mountdir
|
mount $looppart mountdir
|
||||||
cd mountdir
|
cd mountdir
|
||||||
tar --xattrs -xpf ../fs.tar
|
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 ..
|
cd ..
|
||||||
|
|
||||||
## generate grub.cfg (since linux 3.8 32-bit MBR "NT disk signatures" are allowed)
|
## generate grub.cfg (since linux 3.8 32-bit MBR "NT disk signatures" are allowed)
|
||||||
|
Reference in New Issue
Block a user