mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
Cleanup commit, sorry for the mess
This commit is contained in:
parent
618760b004
commit
baab5f5fc3
1
debian/initramfs-tools.manpages
vendored
Normal file
1
debian/initramfs-tools.manpages
vendored
Normal file
@ -0,0 +1 @@
|
||||
mkinitramfs.8
|
||||
24
hooks/acpid
Normal file
24
hooks/acpid
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
PREREQ=""
|
||||
|
||||
prereqs()
|
||||
{
|
||||
echo "$PREREQ"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
# get pre-requisites
|
||||
prereqs)
|
||||
prereqs
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
# Hooks for loading acpi bits into the initramfs
|
||||
|
||||
. /usr/share/initramfs-tools/hook-functions
|
||||
|
||||
for x in fan thermal; do
|
||||
manual_add_modules ${x}
|
||||
done
|
||||
71
mkinitramfs.8
Normal file
71
mkinitramfs.8
Normal file
@ -0,0 +1,71 @@
|
||||
.TH MKINITRAMFS 8 "$Date: 2005/07/15 $" "" "mkinitramfs manual"
|
||||
|
||||
.SH NAME
|
||||
mkinitramfs \- generate an initramfs image
|
||||
|
||||
.SH SYNOPSIS
|
||||
.B mkinitramfs
|
||||
.RB [ \-d
|
||||
.IR confdir ]
|
||||
.RB [ \-k ]
|
||||
.RB [ \-o
|
||||
.IR outfile ]
|
||||
.RB [ \-r
|
||||
.IR root ]
|
||||
.RI [ version ]
|
||||
.SH DESCRIPTION
|
||||
The
|
||||
.B mkinitramfs
|
||||
script generates an initramfs image. The initramfs is an cpio archive.
|
||||
At boot time, the kernel unpacks that archive into ram disk, mounts and
|
||||
uses it as initial root file system. All finding of the root device
|
||||
happens in this early userspace.
|
||||
|
||||
.SH OPTIONS
|
||||
.TP
|
||||
\fB \-d \fI confdir
|
||||
Set an alternate configuration directory.
|
||||
|
||||
.TP
|
||||
\fB \-k
|
||||
Keep the temporary directory used to make the image.
|
||||
|
||||
.TP
|
||||
\fB \-o \fI outfile
|
||||
Write the image to
|
||||
.IR outfile .
|
||||
|
||||
.TP
|
||||
\fB \-r \fI root
|
||||
Override the
|
||||
.B ROOT
|
||||
setting in
|
||||
.IR mkinitramfs.conf .
|
||||
|
||||
.SH FILES
|
||||
.TP
|
||||
.I /etc/mkinitramfs/initramfs.conf
|
||||
The default configuration file for the script. See
|
||||
.BR initramfs.conf (8)
|
||||
for a description of the available configuration parameter.
|
||||
|
||||
.TP
|
||||
.I /etc/mkinitramfs/modules
|
||||
Specified modules will be put in the generated image and loaded when the system boots. The format - one per line - is identical to that of
|
||||
.I /etc/modules,
|
||||
which is described in
|
||||
.BR modules (5).
|
||||
|
||||
.TP
|
||||
.I /etc/mkinitramfs/DSDT.aml
|
||||
If this file exists, it will be appended to the initramfs in a way that causes
|
||||
it to be loaded by ACPI.
|
||||
|
||||
|
||||
.SH AUTHOR
|
||||
The initramfs-tools are written by Jeff Bailey <jbailey@ubuntu.com>.
|
||||
This manual is maintained by Maximilian Attems <maks@sternwelten.at>.
|
||||
|
||||
.SH SEE ALSO
|
||||
|
||||
.BR initramfs.conf (8)
|
||||
19
scripts/init-premount/acpid
Normal file
19
scripts/init-premount/acpid
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
PREREQ=""
|
||||
|
||||
prereqs()
|
||||
{
|
||||
echo "$PREREQ"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
# get pre-requisites
|
||||
prereqs)
|
||||
prereqs
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
modprobe -q fan
|
||||
modprobe -q thermal
|
||||
30
scripts/local-premount/suspend
Normal file
30
scripts/local-premount/suspend
Normal file
@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
PREREQ=""
|
||||
|
||||
prereqs()
|
||||
{
|
||||
echo "$PREREQ"
|
||||
}
|
||||
|
||||
case $1 in
|
||||
# get pre-requisites
|
||||
prereqs)
|
||||
prereqs
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "x${resume}" = "x" ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -e ${resume} ]; then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ -e /sys/power/resume ]; then
|
||||
major=$((0x$(stat -c%t ${resume})))
|
||||
minor=$((0x$(stat -c%T ${resume})))
|
||||
echo ${major}:${minor} >/sys/power/resume
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user