fix ci?
This commit is contained in:
parent
0066900b3a
commit
b8e4ceb8ac
@ -51,19 +51,26 @@ jobs:
|
|||||||
- name: "Usr merge"
|
- name: "Usr merge"
|
||||||
id: usrmerge
|
id: usrmerge
|
||||||
run: |
|
run: |
|
||||||
cp -ax /bin /bin.backup
|
# For /bin first
|
||||||
|
|
||||||
# Convert /bin to a symlink
|
|
||||||
mv /bin/* /usr/bin/
|
mv /bin/* /usr/bin/
|
||||||
rmdir /bin
|
rmdir /bin
|
||||||
ln -s usr/bin /bin
|
ln -s usr/bin /bin
|
||||||
|
|
||||||
# Handle /lib
|
# For /lib, we need to handle it directory by directory
|
||||||
mv /lib/* /usr/lib/
|
# First, move all files in the root of /lib
|
||||||
|
mv /lib/[^s]* /usr/lib/ 2>/dev/null || true
|
||||||
|
|
||||||
|
# Then handle each subdirectory carefully
|
||||||
|
cp -a /lib/systemd/* /usr/lib/systemd/
|
||||||
|
cp -a /lib/udev/* /usr/lib/udev/
|
||||||
|
cp -a /lib/x86_64-linux-gnu/* /usr/lib/x86_64-linux-gnu/
|
||||||
|
|
||||||
|
# Remove the now-empty directories
|
||||||
|
rm -rf /lib/systemd /lib/udev /lib/x86_64-linux-gnu
|
||||||
rmdir /lib
|
rmdir /lib
|
||||||
ln -s usr/lib /lib
|
ln -s usr/lib /lib
|
||||||
|
|
||||||
# Now try installing usrmerge again
|
# Now try installing usrmerge
|
||||||
apt update && apt install -y usrmerge
|
apt update && apt install -y usrmerge
|
||||||
- name: Install node
|
- name: Install node
|
||||||
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
if: ${{ steps.prereq.outputs.need_node == '1' }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user