uname -m
This commit is contained in:
parent
e9a82546ca
commit
df681eb5a1
2 changed files with 4 additions and 4 deletions
|
@ -51,8 +51,8 @@ if [ "make" == "$1" ] || [ "makeboot" == "y" ]; then
|
|||
#stable-snapshot-boot
|
||||
if [ -f "/boot/arch-uefi.conf.example" ] && [ "${rootsnapshot}" == "y" ]; then
|
||||
|
||||
cp "$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)" /boot/initramfs-linux-stable.img
|
||||
cp "$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f2)" /boot/vmlinuz-stable
|
||||
cp "$(echo $(find /boot/ -name "initramfs*$(uname -m).img") | cut -d" " -f2)" /boot/initramfs-linux-stable.img
|
||||
cp "$(echo $(find /boot/ -name "vmlinuz*$(uname -m)") | cut -d" " -f2)" /boot/vmlinuz-stable
|
||||
|
||||
kernel1="$(echo $(find /boot/ -name "initramfs*-stable.img") | cut -d" " -f2)"
|
||||
linuz1="$(find /boot/ -name "vmlinuz*-stable")"
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
set -ex
|
||||
|
||||
|
||||
kernel1="$(echo $(find /boot/ -name "initramfs*.img") | cut -d" " -f2)"
|
||||
linuz1="$(echo $(find /boot/ -name "vmlinuz*") | cut -d" " -f2)"
|
||||
kernel1="$(echo $(find /boot/ -name "initramfs*$(uname -m).img") | cut -d" " -f2)"
|
||||
linuz1="$(echo $(find /boot/ -name "vmlinuz*$(uname -m)") | cut -d" " -f2)"
|
||||
kernel="${kernel1#/*/}"
|
||||
linuz="${linuz1#/*/}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue