Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
mariux64
/
mxtools
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
15
Pull requests
5
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
0bad22b
make-automaps
misc_systemd_units
mxgrub
create_initramfs
mxgrub
mxnetctl
mxrouter
mxvlan
netlog
nvidiactl
pdist
pmirror
prun
put_websafe
README.md
Breadcrumbs
mxtools
/
mxgrub
/
create_initramfs
Blame
Blame
Latest commit
History
History
executable file
·
41 lines (31 loc) · 918 Bytes
Breadcrumbs
mxtools
/
mxgrub
/
create_initramfs
Top
File metadata and controls
Code
Blame
executable file
·
41 lines (31 loc) · 918 Bytes
Raw
#!/bin/sh set -x if [ -z "$1" ]; then echo "You need to supply an initrd file name" exit 1 fi # Prepare microcode updates for AMD and Intel processors DSTDIR=kernel/x86/microcode INITRDNAME="$1" INITRDPATH=/boot/grub/"$INITRDNAME".igz INITRDDIR="$TMPDIR/$INITRDNAME" mkdir -p "$INITRDDIR" cd "$INITRDDIR" mkdir -p "$DSTDIR" if [ -d /lib/firmware/amd-ucode ]; then cat /lib/firmware/amd-ucode/microcode_amd*.bin > "$DSTDIR"/AuthenticAMD.bin fi if [ -d /lib/firmware/intel-ucode ]; then cat /lib/firmware/intel-ucode/* > "$DSTDIR"/GenuineIntel.bin fi ls -ltr "$TMPDIR" find . | cpio -o -H newc > "$TMPDIR"/ucode.cpio ls -ltr "$TMPDIR" cd .. # Clean up rm -rf "$INITRDDIR" cd /project/admin/initramfs find .|cpio -H newc -o | gzip > "$TMPDIR/$INITRDNAME.igz" # cat "$TMPDIR"/ucode.cpio "$TMPDIR/$INITRDNAME.igz" > /boot/grub/"$INITRDNAME.igz" rm "$TMPDIR"/ucode.cpio "$TMPDIR"/"$INITRDNAME.igz"
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
You can’t perform that action at this time.