我有一个格鲁选项文件,我想通过脚本修改。我想添加额外的引导加载程序选项。
该文件可能会随着时间的推移而改变,因此我希望通过在映像附带的任何引导加载程序选项中添加一些适应未来版本的内容。
例如,引导加载程序文件包含以下内容:
# Set the recordfail timeout
GRUB_RECORDFAIL_TIMEOUT=0
# Do not wait on grub prompt
GRUB_TIMEOUT=0
# Set the default commandline
GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS
当我检查我的/var/log/secure时,我会看到以下内容:
Jan 19 01:52:21 205524 /sbin/mingetty[24176]: tty5: No such file or directory
Jan 19 01:52:21 205524 /sbin/mingetty[24178]: tty4: No such file or directory
Jan 19 01:52:22 205524 /sbin/mingetty[24197]: tty2: No such file or directory
Jan 19 01:52:22 205524 /sbin/ming
因此,我试图登录一个tty,它看起来像这样:
Arch Linux (tty1)
hostname login: _
Password: _
Last Login at (Date) on (tty1)
[sudo] password for user: _
因此,我无法使用DM登录。
这才刚刚开始,我不知道为什么。
起初,我认为这是我的.zshrc的一个问题,但我删除了它的内容,错误仍然存在。
有没有人有线索知道是什么导致了这一切?或者我能在哪里找到更多的信息?
谢谢。
所以我买了一台有Linux操作系统的笔记本电脑,我对Linux完全一无所知。启动它时,它会加载一些内容,然后用以下文本显示黑色屏幕:
Acer Linux N1 (1.00.3001)
Kernel 4.2.3-300.fc23.x86_64 on an x86_64 (tty1)
Admin Console: https://127.0.0.1:9090/ or https://[::ffff:127.0.0.1]:9090/
localhost login: root (automatic login)
Last login: Sat Jan 14 16:30:25 on tty1
[
我试图在基于runit的linux系统中运行agetty,但是我有以下问题
sh: cannot set terminal process group (136) Inappropriate ioctl for device
sh: no job control in this shell
我对这个错误一无所知,你有什么想法吗?
运行agetty的脚本是
#!/bin/sh
exec /sbin/agetty 38400 tty1 linux --noclear
任何帮助都会很好。