update and recompile busybox and related stuff

pull/40/head
TomasM 2017-12-14 13:03:27 -05:00
parent b4bef3b878
commit 382422d39b
5 changed files with 5 additions and 6 deletions

View File

@ -45,7 +45,6 @@ rm -Rf /usr/share/man/*_*
rm -Rf /usr/share/icons/elementaryXubuntu-dark rm -Rf /usr/share/icons/elementaryXubuntu-dark
rm -Rf /usr/share/icons/gnome/256x256 rm -Rf /usr/share/icons/gnome/256x256
# Unzip gzipped files (man pages), so LZMA can compress 2times better. # Unzip gzipped files (man pages), so LZMA can compress 2times better.
# First we fix symlinks, then uncompress files # First we fix symlinks, then uncompress files
# $1 = search directory # $1 = search directory
@ -65,7 +64,6 @@ uncompress_files()
uncompress_files /etc/alternatives uncompress_files /etc/alternatives
uncompress_files /usr/share/man uncompress_files /usr/share/man
# remove broken links # remove broken links
# $1 = search directory # $1 = search directory
remove_broken_links() remove_broken_links()

View File

@ -50,6 +50,7 @@ cp static/eject $INITRAMFS/bin
cp static/mount.dynfilefs $INITRAMFS/bin/@mount.dynfilefs cp static/mount.dynfilefs $INITRAMFS/bin/@mount.dynfilefs
cp static/mount.httpfs2 $INITRAMFS/bin/@mount.httpfs2 cp static/mount.httpfs2 $INITRAMFS/bin/@mount.httpfs2
cp static/mount.ntfs-3g $INITRAMFS/bin/@mount.ntfs-3g cp static/mount.ntfs-3g $INITRAMFS/bin/@mount.ntfs-3g
cp static/blkid $INITRAMFS/bin
chmod a+x $INITRAMFS/bin/* chmod a+x $INITRAMFS/bin/*
$INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do $INITRAMFS/bin/busybox | grep , | grep -v Copyright | tr "," " " | while read LINE; do

Binary file not shown.

Binary file not shown.

View File

@ -165,7 +165,7 @@ modprobe_everything()
echo_green_star >&2 echo_green_star >&2
echo "Probing for hardware" >&2 echo "Probing for hardware" >&2
find /lib/modules/ | fgrep .ko | egrep $1 $2 | xargs -n 1 modprobe 2>/dev/null find /lib/modules/ | fgrep .ko | egrep $1 $2 | sed -r "s:^.*/|[.]ko\$::g" | xargs -n 1 modprobe 2>/dev/null
refresh_devs refresh_devs
} }
@ -204,7 +204,7 @@ init_zram()
if [ -r /sys/block/zram0/disksize ]; then if [ -r /sys/block/zram0/disksize ]; then
echo 536870912 > /sys/block/zram0/disksize # 512MB echo 536870912 > /sys/block/zram0/disksize # 512MB
mkswap /dev/zram0 >/dev/null mkswap /dev/zram0 >/dev/null
swapon /dev/zram0 -p 32767 swapon /dev/zram0
echo 100 > /proc/sys/vm/swappiness echo 100 > /proc/sys/vm/swappiness
fi fi
} }
@ -286,7 +286,7 @@ device_bestfs()
debug_log "device_bestfs" "$*" debug_log "device_bestfs" "$*"
local FS local FS
FS="$(blkid "$1" | sed -r "s/.*TYPE=//" | tr -d '"' | tr [A-Z] [a-z])" FS="$(blkid -s TYPE "$1" | sed -r "s/.*TYPE=//" | tr -d '"' | tr [A-Z] [a-z])"
if [ "$FS" = "msdos" -o "$FS" = "fat" -o "$FS" = "vfat" ]; then if [ "$FS" = "msdos" -o "$FS" = "fat" -o "$FS" = "vfat" ]; then
FS="vfat" FS="vfat"
elif [ "$FS" = "ntfs" ]; then elif [ "$FS" = "ntfs" ]; then
@ -787,7 +787,7 @@ change_root()
cd "$1" cd "$1"
# make sure important device files and directories are in union # make sure important device files and directories are in union
mkdir -p boot dev proc sys tmp mnt run mkdir -p boot dev proc sys tmp media mnt run
chmod 1777 tmp chmod 1777 tmp
if [ ! -e dev/console ]; then mknod dev/console c 5 1; fi if [ ! -e dev/console ]; then mknod dev/console c 5 1; fi
if [ ! -e dev/tty ]; then mknod dev/tty c 5 0; fi if [ ! -e dev/tty ]; then mknod dev/tty c 5 0; fi