History

mklive.sh: make it work with xbps>=0.27.

Juan RP committed 12 years ago

Commit de357fb1 parent 2554f931 file · +10 −5Browse files

Unified · Split

mklive.sh.in+10−5
@@ -114,6 +114,13 @@ _EOF · 113 unmodified lines
114 exit 1114 exit 1
115}115}
116 116
117copy_void_keys() {
118 if [ ! -d "$1"/var/db/xbps/keys ]; then
119 mkdir -p "$1"/var/db/xbps/keys
120 cp /var/db/xbps/keys/*.plist "$1"/var/db/xbps/keys
121 fi
122}
123
117install_packages() {124install_packages() {
118 for f in ${PACKAGE_LIST}; do125 for f in ${PACKAGE_LIST}; do
119 info_msg " $f"126 info_msg " $f"
@@ -138,11 +145,10 @@ install_packages() { · 18 unmodified lines
138 if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then145 if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then
139 systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1146 systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1
140 fi147 fi
141
142 install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
143}148}
144 149
145generate_initramfs() {150generate_initramfs() {
151 copy_void_keys $ROOTFS/kernel_temp
146 # Install required pkgs in a temporary rootdir to create152 # Install required pkgs in a temporary rootdir to create
147 # the initramfs and to copy required files.153 # the initramfs and to copy required files.
148 $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \154 $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \
@@ -351,12 +357,11 @@ XBPS_ARGS="-r $ROOTFS -y" · 202 unmodified lines
351XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"357XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"
352XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}')358XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}')
353case $XBPS_VERSION in359case $XBPS_VERSION in
354# XBPS >= 0.21360 *) ;;
355 [0-9].[2-9][1-9]*) ;;
356 *) echo "Your xbps utilities are too old ($XBPS_VERSION), 0.21 is required."; exit 1;;
357esac361esac
358 362
359# Sync index for remote repos first.363# Sync index for remote repos first.
364copy_void_keys $ROOTFS
360$XBPS_INSTALL_CMD -r $ROOTFS -S >/dev/null 2>&1365$XBPS_INSTALL_CMD -r $ROOTFS -S >/dev/null 2>&1
361 366
362_linux_series=$($XBPS_QUERY_CMD -r $ROOTFS -Rx linux)367_linux_series=$($XBPS_QUERY_CMD -r $ROOTFS -Rx linux)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t