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
114114 exit 1
115115 }
116116
117+copy_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+
117124 install_packages() {
118125 for f in ${PACKAGE_LIST}; do
119126 info_msg " $f"
@@ -138,11 +145,10 @@ install_packages() { · 18 unmodified lines
138145 if [ -f $ROOTFS/usr/lib/systemd/system/NetworkManager.service ]; then
139146 systemd-nspawn -D $ROOTFS systemctl enable NetworkManager.service >>$LOGFILE 2>&1
140147 fi
141−
142− install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
143148 }
144149
145150 generate_initramfs() {
151+ copy_void_keys $ROOTFS/kernel_temp
146152 # Install required pkgs in a temporary rootdir to create
147153 # the initramfs and to copy required files.
148154 $XBPS_INSTALL_CMD -r $ROOTFS/kernel_temp -Sy \
@@ -351,12 +357,11 @@ XBPS_ARGS="-r $ROOTFS -y" · 202 unmodified lines
351357 XBPS_ARGS="$XBPS_ARGS -c $REPOSITORY_CACHE"
352358 XBPS_VERSION=$($XBPS_QUERY_CMD -V|awk '{print $2}')
353359 case $XBPS_VERSION in
354−# XBPS >= 0.21
355− [0-9].[2-9][1-9]*) ;;
356− *) echo "Your xbps utilities are too old ($XBPS_VERSION), 0.21 is required."; exit 1;;
360+ *) ;;
357361 esac
358362
359363 # Sync index for remote repos first.
364+copy_void_keys $ROOTFS
360365 $XBPS_INSTALL_CMD -r $ROOTFS -S >/dev/null 2>&1
361366
362367 _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