mklive: require xbps>=0.16, install mount(8) from util-linux, set loglevel=4.

This commit is contained in:
Juan RP 2012-07-03 17:22:25 +02:00
parent 9457e65391
commit bfbaa4a63b
1 changed files with 4 additions and 12 deletions

View File

@ -122,7 +122,7 @@ LABEL linux
MENU LABEL Boot Void GNU/Linux ${kver} ($(uname -m)) MENU LABEL Boot Void GNU/Linux ${kver} ($(uname -m))
KERNEL vmlinuz KERNEL vmlinuz
APPEND initrd=initrd.lz root=live:CDLABEL=VoidLinux-live-$(uname -m)-${kver} \ APPEND initrd=initrd.lz root=live:CDLABEL=VoidLinux-live-$(uname -m)-${kver} \
rootfstype=auto ro liveimg rd.luks=0 rd.md=0 rd.dm=0 \ rootfstype=auto ro liveimg rd.luks=0 rd.md=0 rd.dm=0 loglevel=4 \
vconsole.keymap=${KEYMAP} vconsole.unicode=1 locale.LANG=${LOCALE} vconsole.keymap=${KEYMAP} vconsole.unicode=1 locale.LANG=${LOCALE}
LABEL c LABEL c
MENU LABEL Boot first HD found by BIOS MENU LABEL Boot first HD found by BIOS
@ -349,10 +349,6 @@ cat > $ROOTFS/etc/xbps/local-repos.conf <<_EOF
repositories = { repositories = {
# XBPS >= 0.16 # XBPS >= 0.16
/packages, /packages,
# XBPS < 0.16
/packages/noarch,
/packages/i686,
/packages/x86_64
} }
_EOF _EOF
# Generate a conf for remote repositories. # Generate a conf for remote repositories.
@ -362,13 +358,6 @@ repositories = {
http://xbps.hosting-unlimited.org/binpkgs, http://xbps.hosting-unlimited.org/binpkgs,
http://xbps.goodluckwith.us/binpkgs, http://xbps.goodluckwith.us/binpkgs,
http://xbps.nopcode.org/repos/current, http://xbps.nopcode.org/repos/current,
# XBPS < 0.16
http://xbps.goodluckwith.us/binpkgs/i686,
http://xbps.goodluckwith.us/binpkgs/noarch,
http://xbps.goodluckwith.us/binpkgs/nonfree/i686,
http://xbps.nopcode.org/repos/current/x86_64,
http://xbps.nopcode.org/repos/current/noarch,
http://xbps.nopcode.org/repos/current/nonfree/x86_64
} }
_EOF _EOF
chmod 644 $ROOTFS/etc/xbps/*.conf || error_out $? chmod 644 $ROOTFS/etc/xbps/*.conf || error_out $?
@ -406,6 +395,9 @@ _blkid=$(which blkid)
install -Dm755 ${_lsblk} "$ROOTFS/usr/bin/lsblk" || error_out $? install -Dm755 ${_lsblk} "$ROOTFS/usr/bin/lsblk" || error_out $?
install -Dm755 ${_blkid} "$ROOTFS/sbin/blkid" || error_out $? install -Dm755 ${_blkid} "$ROOTFS/sbin/blkid" || error_out $?
# install mount from util-linux.
install -Dm755 /bin/mount "$ROOTFS/bin/mount" || error_out $?
# #
# The pseudofs aren't needed anymore in target rootfs. # The pseudofs aren't needed anymore in target rootfs.
# #